Skip to content

LTXEulerAncestralRFScheduler skips signal scaling with s_noise=0 #15423

Backlog

Description

@gorkadabo1

Describe the bug

LTXEulerAncestralRFScheduler skips deterministic signal rescaling when eta > 0 and s_noise=0. Disabling the added noise should not disable this rescaling.

Reproduction

import torch
from diffusers import LTXEulerAncestralRFScheduler

scheduler = LTXEulerAncestralRFScheduler(eta=1.0, s_noise=0.0)
scheduler.set_timesteps(sigmas=[0.8, 0.4, 0.0])
sample = torch.ones(1, 1, 1, 1, 1)
velocity = torch.full_like(sample, 0.25)
result = scheduler.step(velocity, scheduler.timesteps[0], sample).prev_sample
print(result.item())

Actual: 0.850000024

Expected: approximately 0.6375

The Euler blend produces 0.85, but the signal rescaling factor (1 - 0.4) / (1 - 0.2) = 0.75 is incorrectly skipped because the code requires both eta > 0 and s_noise > 0. Setting s_noise=1e-8 produces approximately 0.6375, revealing a discontinuity at zero.

The ComfyUI RF reference applies this rescaling whenever eta > 0, regardless of s_noise.

Expected behavior

When eta > 0, the scheduler should apply deterministic signal rescaling even if s_noise=0. Disabling stochastic noise should not change the deterministic part of the update.

Activity

  1. hparik11 commented on Nov 27, 2026

    @hparik11

    Hi, I'd like to work on this. My read matches the report: the rescaling in step() should depend on eta alone, the s_noise condition looks like it was carried over from the noise branch. I'll open a PR decoupling the two, with scheduler tests covering s_noise=0.

  2. gorkadabo1 commented on Nov 28, 2026

    @gorkadabo1
    ContributorAuthor

    Hi @hparik11, thanks for your interest! I've already implemented and validated a fix with regression tests, and I'm planning to submit the PR myself. I'm just waiting for maintainer confirmation before opening it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions