| 180 | |
| 181 | class FluxLoRAFromCivitai(LoRAFromCivitai): |
| 182 | def __init__(self): |
| 183 | super().__init__() |
| 184 | self.supported_model_classes = [FluxDiT, FluxDiT] |
| 185 | self.lora_prefix = ["lora_unet_", "transformer."] |
| 186 | self.renamed_lora_prefix = {} |
| 187 | self.special_keys = { |
| 188 | "single.blocks": "single_blocks", |
| 189 | "double.blocks": "double_blocks", |
| 190 | "img.attn": "img_attn", |
| 191 | "img.mlp": "img_mlp", |
| 192 | "img.mod": "img_mod", |
| 193 | "txt.attn": "txt_attn", |
| 194 | "txt.mlp": "txt_mlp", |
| 195 | "txt.mod": "txt_mod", |
| 196 | } |
| 197 | |
| 198 | |
| 199 | |