Skip to content

Commit 9808220

Browse files
use UniPCMultistepScheduler + fix tests for pipeline
1 parent 1a132f2 commit 9808220

File tree

4 files changed

+55
-477
lines changed

4 files changed

+55
-477
lines changed

scripts/convert_cosmos_to_diffusers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
CosmosVideoToWorldPipeline,
6262
EDMEulerScheduler,
6363
FlowMatchEulerDiscreteScheduler,
64+
UniPCMultistepScheduler,
6465
)
6566
from diffusers.pipelines.cosmos.pipeline_cosmos2_5_predict import Cosmos2_5_PredictBase
6667

@@ -536,7 +537,13 @@ def save_pipeline_cosmos2_5(args, transformer, vae):
536537
)
537538
tokenizer = AutoTokenizer.from_pretrained(tokenizer_path)
538539

539-
scheduler = FlowMatchEulerDiscreteScheduler(use_karras_sigmas=True)
540+
scheduler = UniPCMultistepScheduler(
541+
use_karras_sigmas=True,
542+
use_flow_sigmas=True,
543+
prediction_type="flow_prediction",
544+
sigma_max=200.0,
545+
sigma_min=0.01,
546+
)
540547

541548
pipe = Cosmos2_5_PredictBase(
542549
text_encoder=text_encoder,

0 commit comments

Comments
 (0)