Process empty clip image if there is not one for reg images when training a custom adapter

This commit is contained in:
Jaret Burkett committed 2024-10-15 08:28:04 -06:00
1 parent ce759ebd8c
commit 473d455f44
1 file changed
+1 -1
+1 -1
View File
@@ -1197,7 +1197,7 @@ class SDTrainer(BaseSDTrainProcess):
self.adapter(conditional_clip_embeds)
# do the custom adapter after the prior prediction
if self.adapter and isinstance(self.adapter, CustomAdapter) and has_clip_image:
if self.adapter and isinstance(self.adapter, CustomAdapter) and (has_clip_image or is_reg):
quad_count = random.randint(1, 4)
self.adapter.train()
self.adapter.trigger_pre_te(