xsl
|
326b206d08
|
feat(swapHair): webui_steps参数可外部传入(接口2调试页可调)
- gen_super_image.py: webui_img2img + build_body_v2 接收可选 steps 参数
- run_copy_cost_colorb64.py: swapHair 接口接收 webui_steps,透传给 webui_img2img
- 未传时保持环境变量 WEBUI_STEPS 默认(15),向后兼容
|
2026-07-26 16:49:21 +08:00 |
|
xsl
|
990fae929f
|
perf(swapHair): webui降步数 + 用户图预处理内存缓存
优化1 - webui img2img steps 20→15 (gen_super_image.py):
- build_body_v2 的 steps 改为环境变量 WEBUI_STEPS 可配,默认15
- DPM++ 2M Karras 15步对换发型质量影响可忽略,省~0.1s
优化2 - infer_hairstyle_diy_jy 用户图预处理内存缓存 (hairstyle_model.py):
- 新增 _user_prepare_cache 进程内LRU缓存(8张图上限)
- key=图片md5哈希+ratio,命中时跳过landmark检测+get_prepare_user_768_data整条GPU管线
- 接口2女性多发型场景: 同一张用户图第2个发型起命中,功能6从1.8s降至1.1s(省0.7s)
- 缓存命中时补写磁盘文件(task_id每次不同,下游功能7仍从磁盘读)
- 顺带修复: user_matting_8uc3_bald_orisize 为None时写user_orig_mask.png的crash
- 加分步计时日志(主GAN/融合耗时),便于定位热点
实测: 同图连续请求 swapHair 从4.28s降至3.5s(省18%)
|
2026-07-26 16:41:19 +08:00 |
|
 xslandCursor
|
c5e50de40a
|
chore: 固化 WebUI 底模为 v1-5,并纳入仓库配置副本
本机无 majicmix,将 sd_model_checkpoint 固定为 v1-5-pruned-emaonly;因 onediff/webui 是独立 git 仓无法直接跟踪,配置副本放在 configs/。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-19 15:52:51 +08:00 |
|
 xslandCursor
|
0926c61bd0
|
fix: 适配 ubuntu 路径并增强换发色/训练流程稳定性
将配置与训练脚本从 /home/xsl 切到本机 /home/ubuntu;换发色在 webui 增强失败或缺色板时降级返回,训练结束后自动重启 hair 服务再回调。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-07-19 00:49:16 +08:00 |
|
xsl
|
fc66534a74
|
feat: 系统配置文件适配 RTX 3090
添加系统服务配置文件:
- change_hair-hair.service: hair_service_sd swapHair (8801)
- change_hair-photo.service: photo_service LoRA scheduler (32678)
- change_hair-webui.service: SD WebUI (57860)
|
2026-07-18 19:18:56 +08:00 |
|
xsl
|
6f34e8876c
|
feat: 适配 RTX 3090 (24GB) 环境优化
硬件迁移:从 RTX 5090 (32GB) 迁移到 RTX 3090 (24GB)
主要改动:
- 所有启动脚本和配置文件中的 /home/xsl/ 路径替换为 /home/ubuntu/
- 适配新的 24GB VRAM 环境
|
2026-07-18 19:00:15 +08:00 |
|
xsl
|
9b7324cd26
|
chore: 适配本机 xsl 路径(RTX 5090 机器)
将所有绝对路径从 /home/ubuntu 改回 /home/xsl,覆盖启动脚本、
configure.ini 及训练/测试脚本。纯路径替换,无功能性改动。
本分支(xsl5090)用于本机(RTX 5090)运行;master 维持 /home/ubuntu
供远程 ubuntu 机器使用。
|
2026-07-18 16:26:16 +08:00 |
|
xsl
|
b2738fba7d
|
asdf
|
2026-07-17 22:13:56 +08:00 |
|
xsl
|
2606aca7c5
|
save
|
2026-07-09 22:02:35 +08:00 |
|
xsl
|
ce445b64a6
|
完善部署并训练5个新发型 + 换发型集成文档
部署修复:
- torch.load 增加 weights_only=False patch,兼容 PyTorch 2.6+ 加载旧权重
- OSS 改为懒加载,本地用 output_format=base64 无需配凭证即可启动
- 补全被 gitignore 误排除的必需代码:core/models/layers/data、models/layers/data、keypoints/lib
- webui 训练命令 --xformers 改 --sdpa(修复 xformers 无 CUDA 支持报错)
功能调整:
- hair_grow_service 端口改 8899、preview 路由修复(send_file)
- list_hairstyles 增加发型白名单,测试页只展示当前5个发型
新增脚本:
- train_lora_parallel.py:直接调 kohya 并行训练 LoRA(绕过 photo_service 串行限制)
- train_hairstyles_parallel.py / train_batch_stepC.py:批量训练辅助脚本
- scripts/sync_data_to_server.sh:大文件断点续传到云服务器
文档:
- docs/换发型集成文档.md:换发型完整流程、服务架构、资源依赖、训练方法、集成步骤
|
2026-07-09 20:45:08 +08:00 |
|
xsl
|
aaa1bf159f
|
添加训练数据
|
2026-07-08 20:35:12 +08:00 |
|