Enable safe loading for upscale models.

This commit is contained in:
comfyanonymous 2023-05-14 15:10:40 -04:00
parent acff543d66
commit 587f89fe5a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class UpscaleModelLoader:
def load_model(self, model_name):
model_path = folder_paths.get_full_path("upscale_models", model_name)
sd = comfy.utils.load_torch_file(model_path)
sd = comfy.utils.load_torch_file(model_path, safe_load=True)
out = model_loading.load_state_dict(sd).eval()
return (out, )