Fix from_vanilla call for ControlNetAdvanced so it does not break ComfyUI memory management system; parent model patcher has to be tracked properly now
This commit is contained in:
@@ -129,6 +129,7 @@ class ControlNetAdvanced(ControlNet, AdvancedControlBase):
|
||||
global_average_pooling=v.global_average_pooling, compression_ratio=v.compression_ratio, latent_format=v.latent_format, load_device=v.load_device,
|
||||
manual_cast_dtype=v.manual_cast_dtype)
|
||||
v.copy_to(to_return)
|
||||
to_return.control_model_wrapped = v.control_model_wrapped.clone()
|
||||
return to_return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user