chore: 固化 WebUI 底模为 v1-5,并纳入仓库配置副本
本机无 majicmix,将 sd_model_checkpoint 固定为 v1-5-pruned-emaonly;因 onediff/webui 是独立 git 仓无法直接跟踪,配置副本放在 configs/。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -296,8 +296,8 @@ curl -X POST http://127.0.0.1:32678/api/hair/train \
|
||||
| 改动 | 说明 |
|
||||
|------|------|
|
||||
| `config.json` 的 onediff compiler 路径 | 指向本机 onediff 目录 |
|
||||
| 启动加 `HF_HUB_OFFLINE=1` | 本机无法访问 huggingface.co,用本地缓存离线加载 CLIP |
|
||||
| SD 模型 | 实际加载 `v1-5-pruned-emaonly`(config 里写的 majicmix 不存在,webui 自动 fallback) |
|
||||
| 启动加 `HF_HUB_OFFLINE=1` | 本机无法稳定访问 huggingface.co,用本地缓存离线加载 CLIP(需预先缓存 `openai/clip-vit-large-patch14`) |
|
||||
| SD 模型 | `sd_model_checkpoint` 固定为 `v1-5-pruned-emaonly.safetensors`(本机无 majicmix)。仓库内权威副本:`configs/stable-diffusion-webui.config.json`;部署时拷到 `project/onediff/stable-diffusion-webui/config.json`(该目录是独立 git 仓库,无法被本仓直接跟踪) |
|
||||
|
||||
### 3. 换发型推理改动(`hair_service_sd/gen_super_image.py`)
|
||||
|
||||
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"ldsr_steps": 100,
|
||||
"ldsr_cached": false,
|
||||
"SCUNET_tile": 256,
|
||||
"SCUNET_tile_overlap": 8,
|
||||
"SWIN_tile": 192,
|
||||
"SWIN_tile_overlap": 8,
|
||||
"SWIN_torch_compile": false,
|
||||
"hypertile_enable_unet": false,
|
||||
"hypertile_enable_unet_secondpass": false,
|
||||
"hypertile_max_depth_unet": 3,
|
||||
"hypertile_max_tile_unet": 256,
|
||||
"hypertile_swap_size_unet": 3,
|
||||
"hypertile_enable_vae": false,
|
||||
"hypertile_max_depth_vae": 3,
|
||||
"hypertile_max_tile_vae": 128,
|
||||
"hypertile_swap_size_vae": 3,
|
||||
"onediff_compiler_caches_path": "/home/ubuntu/change_hair/project/onediff/stable-diffusion-webui/extensions/onediff_sd_webui_extensions/compiler_caches",
|
||||
"onediff_compiler_backend": "oneflow",
|
||||
"sd_model_checkpoint": "v1-5-pruned-emaonly.safetensors",
|
||||
"sd_checkpoint_hash": "6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa",
|
||||
"control_net_detectedmap_dir": "detected_maps",
|
||||
"control_net_models_path": "",
|
||||
"control_net_modules_path": "",
|
||||
"control_net_unit_count": 3,
|
||||
"control_net_model_cache_size": 2,
|
||||
"control_net_inpaint_blur_sigma": 7,
|
||||
"control_net_no_detectmap": false,
|
||||
"control_net_detectmap_autosaving": false,
|
||||
"control_net_allow_script_control": false,
|
||||
"control_net_sync_field_args": true,
|
||||
"controlnet_show_batch_images_in_ui": false,
|
||||
"controlnet_increment_seed_during_batch": false,
|
||||
"controlnet_disable_openpose_edit": false,
|
||||
"controlnet_disable_photopea_edit": false,
|
||||
"controlnet_photopea_warning": true,
|
||||
"controlnet_ignore_noninpaint_mask": false,
|
||||
"controlnet_clip_detector_on_cpu": false,
|
||||
"controlnet_control_type_dropdown": false
|
||||
}
|
||||
Reference in New Issue
Block a user