From c5e50de40ada88f5ee9d26291d060a9652d325bc Mon Sep 17 00:00:00 2001 From: xsl Date: Sun, 19 Jul 2026 15:52:51 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=9B=BA=E5=8C=96=20WebUI=20=E5=BA=95?= =?UTF-8?q?=E6=A8=A1=E4=B8=BA=20v1-5=EF=BC=8C=E5=B9=B6=E7=BA=B3=E5=85=A5?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=85=8D=E7=BD=AE=E5=89=AF=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本机无 majicmix,将 sd_model_checkpoint 固定为 v1-5-pruned-emaonly;因 onediff/webui 是独立 git 仓无法直接跟踪,配置副本放在 configs/。 Co-authored-by: Cursor --- README.md | 4 +-- configs/stable-diffusion-webui.config.json | 40 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100755 configs/stable-diffusion-webui.config.json diff --git a/README.md b/README.md index 68046a8..d7925e3 100644 --- a/README.md +++ b/README.md @@ -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`) diff --git a/configs/stable-diffusion-webui.config.json b/configs/stable-diffusion-webui.config.json new file mode 100755 index 0000000..28aaef5 --- /dev/null +++ b/configs/stable-diffusion-webui.config.json @@ -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 +} \ No newline at end of file