mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 16:24:33 +02:00
Check if the model has unet before remove_hidiffusion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user