fix loader

Signed-off-by: vladmandic <mandic00@live.com>
pull/4716/head
vladmandic 2026-03-30 09:58:42 +02:00
parent 61e7663eb3
commit 849ab8fe1e
2 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,8 @@ def load_diffuser_force(detected_model_type, checkpoint_info, diffusers_load_con
allow_post_quant = False
except Exception as e:
log.error(f'Load {op}: path="{checkpoint_info.path}" {e}')
if debug_load:
errors.display(e, 'Load')
# if debug_load:
errors.display(e, 'Load')
return None, True
if sd_model is not None:
return sd_model, True

View File

@ -30,6 +30,7 @@ def load_z_image(checkpoint_info, diffusers_load_config=None):
load_args, _quant_args = model_quant.get_dit_args(diffusers_load_config, allow_quant=False)
log.debug(f'Load model: type=ZImage repo="{repo_id}" config={diffusers_load_config} offload={shared.opts.diffusers_offload_mode} dtype={devices.dtype} args={diffusers_load_config}')
transformer = None
if model_quant.check_nunchaku('Model'): # only available model
transformer = load_nunchaku()
if transformer is None: