LTX long multi-prompt drops the last automatic denoising step

Đang mở Phù hợp với người mới
#15,460 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, pytorch
Lĩnh vực
machine-learning

Hướng nghiên cứu

Đọc src/diffusers/pipelines/ltx/pipeline_ltx_i2v_long_multi_prompt.py quanh dòng 1266–1274, nơi vòng lặp khử nhiễu theo từng cửa sổ cắt các timesteps. Chạy bản tái hiện CPU được cung cấp để xác nhận sigma cuối vẫn dương với cả hai scheduler. Hoàn tất khi vòng lặp thực hiện đúng hai bước dự kiến và đạt sigma bằng không khi num_inference_steps=2 và sigmas bị bỏ qua.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
35k
Fork
7.5k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
58

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của huggingface/diffusers

Tất cả issue của huggingface/diffusers

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.