We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a053bdc commit 8b71cc4Copy full SHA for 8b71cc4
docker_images/diffusers/app/lora.py
@@ -158,9 +158,10 @@ def _load_lora_adapter(self, kwargs):
158
logger.error(msg)
159
raise ValueError(msg)
160
base_model = model_data.cardData["base_model"]
161
- if (
162
- isinstance(base_model, list) and (self.model_id not in base_model)
163
- ) or (self.model_id != base_model):
+ is_list = isinstance(base_model, list)
+ if (is_list and (self.model_id not in base_model)) or (
+ not is_list and self.model_id != base_model
164
+ ):
165
msg = f"Requested adapter {adapter:s} is not a LoRA adapter for base model {self.model_id:s}"
166
167
0 commit comments