Check if the model has unet before remove_hidiffusion

This commit is contained in:
Disty0
2024-05-21 18:01:58 +03:00
parent 44857a04a8
commit 585b6037bd
+2 -1
View File
@@ -34,4 +34,5 @@ def apply_hidiffusion(p, model_type):
def remove_hidiffusion(p):
hidiffusion.remove_hidiffusion(shared.sd_model)
if hasattr(shared.sd_model, "unet"):
hidiffusion.remove_hidiffusion(shared.sd_model)