(self)
| 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) |
no test coverage detected