Commit 4d0f412
authored
[WIP] Check UNet shapes in StableDiffusionInpaintPipeline __init__ (huggingface#2853)
Add warning in __init__ if user loads a checkpoint with pipeline.unet.config.in_channels other than 9.1 parent 25d927a commit 4d0f412
File tree
1 file changed
+8
-0
lines changed- src/diffusers/pipelines/stable_diffusion
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
0 commit comments