Added support to train Krea2 as an edit model
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user