Unfuses LoRAs for the text encoder. Args: text_encoder (`torch.nn.Module`): The text encoder module to set the adapter layers for. If `None`, it will try to get the `text_encoder` attribute.
(text_encoder)
| 89 | |
| 90 | |
| 91 | def unfuse_text_encoder_lora(text_encoder): |
| 92 | """ |
| 93 | Unfuses LoRAs for the text encoder. |
| 94 | |
| 95 | Args: |
| 96 | text_encoder (`torch.nn.Module`): |
| 97 | The text encoder module to set the adapter layers for. If `None`, it will try to get the `text_encoder` |
| 98 | attribute. |
| 99 | """ |
| 100 | for module in text_encoder.modules(): |
| 101 | if isinstance(module, BaseTunerLayer): |
| 102 | module.unmerge() |
| 103 | |
| 104 | |
| 105 | def set_adapters_for_text_encoder( |
nothing calls this directly
no outgoing calls
no test coverage detected