MCPcopy
hub / github.com/lllyasviel/Fooocus / copy

Method copy

ldm_patched/modules/controlnet.py:179–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 return self.control_merge(None, control, control_prev, output_dtype)
178
179 def copy(self):
180 c = ControlNet(self.control_model, global_average_pooling=self.global_average_pooling, load_device=self.load_device, manual_cast_dtype=self.manual_cast_dtype)
181 self.copy_to(c)
182 return c
183
184 def get_models(self):
185 out = super().get_models()

Callers 15

read_info_from_imageFunction · 0.45
tokenizeMethod · 0.45
ksamplerFunction · 0.45
numpy_to_pytorchFunction · 0.45
logFunction · 0.45
__init__Method · 0.45
apply_outpaintFunction · 0.45
process_promptFunction · 0.45
fooocus_fillFunction · 0.45
__init__Method · 0.45
color_correctionMethod · 0.45

Calls 2

ControlNetClass · 0.70
copy_toMethod · 0.45

Tested by

no test coverage detected