mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 14:50:49 +08:00
Ensure unet is defined
This commit is contained in:
parent
61b484d546
commit
f9c3779d4e
@ -26,6 +26,7 @@ def load_diffusers(model_path, output_vae=True, output_clip=True, embedding_dire
|
||||
if text_encoder2_path is not None:
|
||||
text_encoder_paths.append(text_encoder2_path)
|
||||
|
||||
unet = None
|
||||
if unet_path is not None:
|
||||
unet = sd.load_unet(unet_path)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user