Fixed issue when there is no adapter

This commit is contained in:
Jaret Burkett committed 2024-02-22 02:59:59 -07:00
1 parent b68c3ef734
commit 9ffa8c3711
1 file changed
+1 -1
+1 -1
View File
@@ -930,7 +930,7 @@ class SDTrainer(BaseSDTrainProcess):
if self.adapter and isinstance(self.adapter, ClipVisionAdapter):
grad_on_text_encoder = True
if self.adapter_config.type == 'te_augmenter':
if self.adapter_config and self.adapter_config.type == 'te_augmenter':
grad_on_text_encoder = True
# have a blank network so we can wrap it in a context and set multipliers without checking every time