set localfilesonly default false

This commit is contained in:
Vladimir Mandic
2024-05-10 18:02:01 -04:00
parent e5fcf78117
commit bd3b3bd01c
+1 -1
View File
@@ -1052,7 +1052,7 @@ def load_diffuser(checkpoint_info=None, already_loaded_state_dict=None, timer=No
shared.log.error(f'Failed loading {op}: {checkpoint_info.path} auto={err1} diffusion={err2}')
return
elif os.path.isfile(checkpoint_info.path) and checkpoint_info.path.lower().endswith('.safetensors'):
diffusers_load_config["local_files_only"] = True
diffusers_load_config["local_files_only"] = False # TODO causes online check on model load
diffusers_load_config["extract_ema"] = shared.opts.diffusers_extract_ema
if pipeline is None:
shared.log.error(f'Diffusers {op} pipeline not initialized: {shared.opts.diffusers_pipeline}')