MCPcopy Create free account
hub / github.com/Kosinkadink/ComfyUI-Advanced-ControlNet / copy

Method copy

adv_control/control.py:339–343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 x_noisy = torch.cat([x_noisy] + [cond['c_concat']], dim=1)
338
339 control = self.control_model(x=x_noisy.to(dtype), hint=self.cond_hint, timesteps=timestep.float(), context=comfy.model_management.cast_to_device(context, x_noisy.device, dtype), y=y, cond=cond)
340 return self.control_merge(control, control_prev, output_dtype)
341
342 def copy(self):
343 c = SVDControlNetAdvanced(self.control_model, self.timestep_keyframes, global_average_pooling=self.global_average_pooling, load_device=self.load_device, manual_cast_dtype=self.manual_cast_dtype)
344 self.copy_to(c)
345 self.copy_to_advanced(c)
346 return c

Callers

nothing calls this directly

Calls 2

copy_to_advancedMethod · 0.80

Tested by

no test coverage detected