Added support to train Krea2 as an edit model

This commit is contained in:
Jaret Burkett committed 2026-07-04 09:12:39 -06:00
1 parent f63221e577
commit b1e1a834d4
7 files changed
+519 -35

No files matched your search

+1 -3
View File
@@ -1891,9 +1891,7 @@ class TextEmbeddingCachingMixin:
self.sd.set_device_state_preset('cache_text_encoder')
did_move = True
if file_item.encode_control_in_text_embeddings:
if file_item.control_path is None:
raise Exception(f"Could not find a control image for {file_item.path} which is needed for this model")
if file_item.encode_control_in_text_embeddings and file_item.control_path is not None:
ctrl_img_list = []
control_path_list = file_item.control_path
if not isinstance(file_item.control_path, list):