Add support for training VLLMs, omni models, and LLMs

This commit is contained in:
Jaret Burkett committed 2026-09-15 17:47:02 -06:00
1 parent 426ccb4ec4
commit db8dbd68c2
21 files changed
+1794 -524

No files matched your search

+6 -2
View File
@@ -1325,7 +1325,11 @@ class GenerateImageConfig:
# make parent dirs
os.makedirs(self.output_folder, exist_ok=True)
self.set_gen_time()
if isinstance(image, list):
if isinstance(image, str):
# text-generating models: the sample is the text itself
with open(self.get_prompt_path(count, max_count), 'w', encoding='utf-8') as f:
f.write(image)
elif isinstance(image, list):
# video
if self.num_frames == 1:
raise ValueError(f"Expected 1 img but got a list {len(image)}")
@@ -1481,7 +1485,7 @@ class GenerateImageConfig:
pass
def log_image(self, image, count: int = 0, max_count=0):
if self.logger is None:
if self.logger is None or isinstance(image, str):
return
self.logger.log_image(image, count, self.prompt)