Skip to content

Commit a17c98d

Browse files
cleanup scheduler + tests
1 parent df085fa commit a17c98d

File tree

3 files changed

+214
-138
lines changed

3 files changed

+214
-138
lines changed

src/diffusers/pipelines/cosmos/pipeline_cosmos25_predict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def __call__(
699699

700700
self._current_timestep = t.cpu().item()
701701

702-
# NOTE: equivalent to t / 1000 for FlowUniPCMultistepScheduler (sigmas are in [0, 1], num_train_timesteps=1000)
702+
# NOTE: sigmas are in [0, 1] in FlowUniPCMultistepScheduler
703703
sigma_t = torch.tensor(self.scheduler.sigmas[i]).unsqueeze(0).to(device=device, dtype=transformer_dtype)
704704

705705
in_latents = cond_mask * cond_latent + (1 - cond_mask) * latents # TODO: could use cond_indicator

0 commit comments

Comments
 (0)