add native hf auth check

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-04-13 10:05:15 -04:00
parent e9a31a92c9
commit 94848cbc2b
2 changed files with 26 additions and 19 deletions
+3
View File
@@ -549,6 +549,9 @@ def load_diffuser(checkpoint_info=None, already_loaded_state_dict=None, timer=No
# load with custom loader
if sd_model is None:
sd_model = load_diffuser_force(model_type, checkpoint_info, diffusers_load_config, op)
if sd_model is not None and not sd_model:
shared.log.error(f'Load {op}: type="{model_type}" pipeline="{pipeline}" not loaded')
return
# load from hf folder-style
if sd_model is None: