mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-18 22:08:13 +00:00
Merge pull request #1275 from Mr-Neutr0n/fix-dit-none-check
Fix AttributeError when pipe.dit is None during split training
This commit is contained in:
@@ -299,7 +299,7 @@ class ZImageUnit_PromptEmbedder(PipelineUnit):
|
|||||||
|
|
||||||
def process(self, pipe: ZImagePipeline, prompt, edit_image):
|
def process(self, pipe: ZImagePipeline, prompt, edit_image):
|
||||||
pipe.load_models_to_device(self.onload_model_names)
|
pipe.load_models_to_device(self.onload_model_names)
|
||||||
if hasattr(pipe, "dit") and pipe.dit.siglip_embedder is not None:
|
if hasattr(pipe, "dit") and pipe.dit is not None and pipe.dit.siglip_embedder is not None:
|
||||||
# Z-Image-Turbo and Z-Image-Omni-Base use different prompt encoding methods.
|
# Z-Image-Turbo and Z-Image-Omni-Base use different prompt encoding methods.
|
||||||
# We determine which encoding method to use based on the model architecture.
|
# We determine which encoding method to use based on the model architecture.
|
||||||
# If you are using two-stage split training,
|
# If you are using two-stage split training,
|
||||||
|
|||||||
Reference in New Issue
Block a user