Unverified Commit 043ab252 authored by Alberto Chimenti's avatar Alberto Chimenti Committed by GitHub
Browse files

Fix WanVACEPipeline to allow prompt to be None and skip encoding step (#12251)

Fixed WanVACEPipeline to allow prompt to be None and skip encoding step
parent 08c29020
...@@ -795,7 +795,7 @@ class WanVACEPipeline(DiffusionPipeline, WanLoraLoaderMixin): ...@@ -795,7 +795,7 @@ class WanVACEPipeline(DiffusionPipeline, WanLoraLoaderMixin):
callback_on_step_end_tensor_inputs = callback_on_step_end.tensor_inputs callback_on_step_end_tensor_inputs = callback_on_step_end.tensor_inputs
# Simplification of implementation for now # Simplification of implementation for now
if not isinstance(prompt, str): if prompt is not None and not isinstance(prompt, str):
raise ValueError("Passing a list of prompts is not yet supported. This may be supported in the future.") raise ValueError("Passing a list of prompts is not yet supported. This may be supported in the future.")
if num_videos_per_prompt != 1: if num_videos_per_prompt != 1:
raise ValueError( raise ValueError(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment