Add support for Boogu Image and Boogu Image Edit

This commit is contained in:
Jaret Burkett committed 2026-06-18 15:05:49 -06:00
1 parent e886745051
commit 60c1ac6a50
14 files changed
+3323 -3

No files matched your search

+2 -2
View File
@@ -1402,9 +1402,9 @@ def validate_configs(
raise ValueError("All datasets must have cache_text_embeddings set to True when caching text embeddings is enabled.")
# qwen image edit cannot cache text embeddings
if model_config.arch == 'qwen_image_edit':
if model_config.arch in ['qwen_image_edit', 'boogu_image_edit']:
if train_config.unload_text_encoder:
raise ValueError("Cannot cache unload text encoder with qwen_image_edit model. Control images are encoded with text embeddings. You can cache the text embeddings though")
raise ValueError(f"Cannot cache unload text encoder with {model_config.arch} model. Control images are encoded with text embeddings. You can cache the text embeddings though")
if train_config.diff_output_preservation and train_config.blank_prompt_preservation:
raise ValueError("Cannot use both differential output preservation and blank prompt preservation at the same time. Please set one of them to False.")