mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Handle inpainting training for control_lora adapter
This commit is contained in:
@@ -252,9 +252,7 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
|
||||
test_image_paths = []
|
||||
if self.adapter_config is not None and self.adapter_config.test_img_path is not None:
|
||||
test_image_path_list = self.adapter_config.test_img_path.split(',')
|
||||
test_image_path_list = [p.strip() for p in test_image_path_list]
|
||||
test_image_path_list = [p for p in test_image_path_list if p != '']
|
||||
test_image_path_list = self.adapter_config.test_img_path
|
||||
# divide up images so they are evenly distributed across prompts
|
||||
for i in range(len(sample_config.prompts)):
|
||||
test_image_paths.append(test_image_path_list[i % len(test_image_path_list)])
|
||||
|
||||
Reference in New Issue
Block a user