diff --git a/CHANGELOG.md b/CHANGELOG.md index 569e5c194..df9219de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log for SD.Next -## Update for 2025-09-19 +## Update for 2025-09-20 - **Models** - [WAN 2.2 14B VACE](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B) @@ -27,6 +27,7 @@ - framepack: add explicit hf-login before framepack load - benchmark: remove forced sampler from system info benchmark - xyz-grid: fix xyz grid with random seeds + - fix download for sd15/sdxl reference models ## Update for 2025-09-15 diff --git a/modules/civitai/download_civitai.py b/modules/civitai/download_civitai.py index 508bd0a8f..2c6c47412 100644 --- a/modules/civitai/download_civitai.py +++ b/modules/civitai/download_civitai.py @@ -103,10 +103,11 @@ def download_civit_model_thread(model_name: str, model_url: str, model_path: str if os.path.isfile(temp_file): starting_pos = os.path.getsize(temp_file) headers['Range'] = f'bytes={starting_pos}-' - if token is None or len(token) == 0: - token = shared.opts.civitai_token - if token is not None and len(token) > 0: - headers['Authorization'] = f'Bearer {token}' + if ('civit' in model_url.lower()): + if token is None or len(token) == 0: + token = shared.opts.civitai_token + if (token is not None) and (len(token) > 0): + headers['Authorization'] = f'Bearer {token}' r = shared.req(model_url, headers=headers, stream=True) total_size = int(r.headers.get('content-length', 0)) diff --git a/modules/lora/lora_overrides.py b/modules/lora/lora_overrides.py index 61f2dad46..5889e1dec 100644 --- a/modules/lora/lora_overrides.py +++ b/modules/lora/lora_overrides.py @@ -61,7 +61,9 @@ def get_method(shorthash=''): use_diffusers = use_diffusers or any(x.startswith(shorthash) for x in maybe_diffusers) if shared.opts.lora_force_diffusers and len(shorthash) > 4: use_diffusers = use_diffusers or any(x.startswith(shorthash) for x in force_diffusers) - use_nunchaku = hasattr(shared.sd_model, 'transformer') and 'Nunchaku' in shared.sd_model.transformer.__class__.__name__ + nunchaku_dit = hasattr(shared.sd_model, 'transformer') and 'Nunchaku' in shared.sd_model.transformer.__class__.__name__ + nunchaku_unet = hasattr(shared.sd_model, 'unet') and 'Nunchaku' in shared.sd_model.unet.__class__.__name__ + use_nunchaku = nunchaku_dit or nunchaku_unet if use_nunchaku: return 'nunchaku' elif use_diffusers: