LTX long multi-prompt drops the last automatic denoising step

オープン 初心者向け
#15,460 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, pytorch

調査の方向性

ウィンドウごとのノイズ除去ループがtimestepsをスライスする src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py の1266〜1274行付近を読んでください。付属のCPU再現コードを実行し、両方のschedulerで最後のsigmaが正のままであることを確認してください。num_inference_steps=2 で sigmas が省略された場合に、ループが期待どおり2ステップを実行し、sigmaがゼロに達すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

I found this while reading the per-window denoising loop in LTXI2VLongMultiPromptPipeline. With sigmas omitted and num_inference_steps=2, each window schedules one denoising step and stops at a positive sigma. I expect two steps and a final sigma of zero. I have a fix ready for review. Denoising loop at 08d5de30

Reproduction

I reproduced the missing transition with the CPU script below. It runs both schedulers with the pipeline's timestep slice and synthetic predictions. This exercises the scheduler path without loading pipeline weights.

import torch
from diffusers import FlowMatchEulerDiscreteScheduler, LTXEulerAncestralRFScheduler

for scheduler in (
    FlowMatchEulerDiscreteScheduler(shift_terminal=0.1),
    LTXEulerAncestralRFScheduler(eta=0.0),
):
    scheduler.set_timesteps(num_inference_steps=2)
    sample = torch.tensor([2.0])
    timesteps = scheduler.timesteps[:-1]
    for timestep in timesteps:
        sample = scheduler.step(torch.ones_like(sample), timestep, sample, return_dict=False)[0]
    print(type(scheduler).__name__, len(timesteps), scheduler.sigmas[scheduler.step_index].item())
FlowMatchEulerDiscreteScheduler 1 0.10000000149011612
LTXEulerAncestralRFScheduler 1 0.0010000000474974513
System Info

Diffusers 0.44.0.dev0 at 08d5de30, Linux x86_64, Python 3.14.5, PyTorch 2.15.0+cpu, Transformers 5.24.1. I ran the script on one CPU process.

主要言語
Python
スター
35k
フォーク
7.5k
平均マージ
3日 2時間
マージ済み PR(30日)
58

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

huggingface/diffusers のほかの issue

huggingface/diffusers の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。