mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Process empty clip image if there is not one for reg images when training a custom adapter
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user