huggingface / huggingface/diffusers

SD3 inpaint pipeline can not use EulerA scheduler. bug: The `scale_model_input` function should be called before `step` to ensure correct denoising.

オープン
#9,084 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug stale
主要言語
Python
スター
34.5k
フォーク
7.3k
平均マージ
3日 3時間
マージ済み PR(30日)
91

説明

### Describe the bug

SD3 inpaint pipeline can not use EulerA scheduler.

### Reproduction

```python
pipe = StableDiffusion3InpaintPipeline.from_pretrained(xxx)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)

# then run the pipe
out_images = pipe(
prompt=caption,
image=input_image,
mask_image=input_mask, ).images
```

### Logs

```shell
The `scale_model_input` function should be called before `step` to ensure correct denoising. See `StableDiffusionPipeline` for a usage example.
```

### System Info

torch: 2.0.0 + cu117
diffusers: commit_id: `41b705f42db6ce43bbcb41bd2cefd479d8b73774`

### Who can help?

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

StableDiffusion3InpaintPipeline から始めて、その denoising ループを追跡し、次に warning で言及されている StableDiffusionPipeline の例と scheduler の使用方法を比較します。EulerAncestralDiscreteScheduler を使用して問題を再現し、warning なしで pipeline がステップ実行前に必要な入力スケーリングを行うことを確認します。

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

評価

技術スタック
python, pytorch
領域
machine-learning
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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