Uh oh!
There was an error while loading. Please reload this page.
[BUG] fixes in kadinsky pipeline - #11080
Conversation
HuggingFaceDocBuilderDev
commented
Mar 17, 2025
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
yiyixuxu
commented
Apr 8, 2025
thanks @ishan-modi ! |
yiyixuxu
commented
Apr 8, 2025
I think there are some kandinsky test failure that's potentially related https://github.com/huggingface/diffusers/actions/runs/14330695758/job/40203664079?pr=11080#step:6:33932 |
978ad6b to
e6fa809Compareishan-modi
commented
Apr 9, 2025
Thanks for the review, fixed the tests ! |
| resample="bicubic", | ||
| reducing_gap=1, | ||
| ) | ||
| kwargs = {} |
There was a problem hiding this comment.
ohh we can just give them a default value like this
movq_scale_factor=2** (len(self.movq.config.block_out_channels) -1) ifgetattr(self, "movq", None) else ..
movq_latent_channels=self.movq.config.latent_channelsifgetattr(self, "movq", None) else ..to be consistent with how it is handled in other pipelines, for example https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py#L218
hlky
left a comment
There was a problem hiding this comment.
Same comment for all pipelines.
| image = self.numpy_to_pil(image) | ||
| else: | ||
| image = latents | ||
| image = self.image_processor.postprocess(image, output_type) |
There was a problem hiding this comment.
This breaks output_type == "latent". image_processor.postprocess should not be applied to latent output.
There was a problem hiding this comment.
hmm, postprocess function doesn't do anything if the output_type is "latent", see here.
Let me know if I am missing anything
There was a problem hiding this comment.
Even so, the code style does not match other pipelines, please make the requested changes to keep consistency with code styling.
There was a problem hiding this comment.
Alright, made the change let me know if it looks good
| if output_type not in ["pt", "np", "pil", "latent"]: | ||
| raise ValueError( | ||
| f"Only the output types `pt`, `pil`, `np` and `latent` are supported not output_type={output_type}" | ||
| ) |
There was a problem hiding this comment.
This can be removed. Refer to other pipelines for an example.
diffusers/src/diffusers/pipelines/flux/pipeline_flux.py
Lines 974 to 981 in 31c4f24
ishan-modi
commented
Apr 19, 2025
@hlky gentle ping |
yiyixuxu
commented
Apr 21, 2025
thanks a lot @ishan-modi |



What does this PR do?
Fixes#11060
Who can review?
@DN6