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

Method clone

ldm_patched/modules/sd.py:104–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self.layer_idx = None
103
104 def clone(self):
105 n = CLIP(no_init=True)
106 n.patcher = self.patcher.clone()
107 n.cond_stage_model = self.cond_stage_model
108 n.tokenizer = self.tokenizer
109 n.layer_idx = self.layer_idx
110 return n
111
112 def add_patches(self, patches, strength_patch=1.0, strength_model=1.0):
113 return self.patcher.add_patches(patches, strength_patch, strength_model)

Callers 15

refresh_lorasMethod · 0.45
ksamplerFunction · 0.45
patchMethod · 0.45
clip_separate_innerFunction · 0.45
clip_separateFunction · 0.45
calculate_weight_patchedFunction · 0.45
timed_admFunction · 0.45
clone_condFunction · 0.45
cannyFunction · 0.45
patchMethod · 0.45

Calls 1

CLIPClass · 0.85

Tested by

no test coverage detected