mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-05-01 03:31:35 +00:00
Added specialized scaler training to ip adapters
This commit is contained in:
@@ -1243,8 +1243,10 @@ class SDTrainer(BaseSDTrainProcess):
|
||||
has_been_preprocessed=True,
|
||||
quad_count=quad_count
|
||||
)
|
||||
# else:
|
||||
# raise ValueError("Adapter images now must be loaded with dataloader or be a reg image")
|
||||
else:
|
||||
print("No Clip Image")
|
||||
print([file_item.path for file_item in batch.file_items])
|
||||
raise ValueError("Could not find clip image")
|
||||
|
||||
if not self.adapter_config.train_image_encoder:
|
||||
# we are not training the image encoder, so we need to detach the embeds
|
||||
|
||||
Reference in New Issue
Block a user