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.

Open
#9,084 7 comments 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.