mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 19:03:51 +00:00
Merge branch 'fix_unet_wrapper_function_name' of https://github.com/gameltb/ComfyUI
This commit is contained in:
commit
a6c83b3cd0
@ -107,10 +107,10 @@ class ModelPatcher:
|
|||||||
for k in patch_list:
|
for k in patch_list:
|
||||||
if hasattr(patch_list[k], "to"):
|
if hasattr(patch_list[k], "to"):
|
||||||
patch_list[k] = patch_list[k].to(device)
|
patch_list[k] = patch_list[k].to(device)
|
||||||
if "unet_wrapper_function" in self.model_options:
|
if "model_function_wrapper" in self.model_options:
|
||||||
wrap_func = self.model_options["unet_wrapper_function"]
|
wrap_func = self.model_options["model_function_wrapper"]
|
||||||
if hasattr(wrap_func, "to"):
|
if hasattr(wrap_func, "to"):
|
||||||
self.model_options["unet_wrapper_function"] = wrap_func.to(device)
|
self.model_options["model_function_wrapper"] = wrap_func.to(device)
|
||||||
|
|
||||||
def model_dtype(self):
|
def model_dtype(self):
|
||||||
if hasattr(self.model, "get_dtype"):
|
if hasattr(self.model, "get_dtype"):
|
||||||
|
Loading…
Reference in New Issue
Block a user