mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
k_model
This commit is contained in:
parent
6b2483ce29
commit
669c90fec8
@ -207,7 +207,7 @@ class NunchakuPatcher(UnetPatcher):
|
||||
return self.model
|
||||
|
||||
def forge_unpatch_model(self, target_device=None):
|
||||
if target_device is not None:
|
||||
if target_device is not None and hasattr(self.model, "diffusion_model"): # k_model/KModel/cleanup()
|
||||
self.model.diffusion_model.to(target_device)
|
||||
|
||||
def to_load_list(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user