megvii-research / HiDiffusion

[ECCV 2024] HiDiffusion: Increases the resolution and speed of your diffusion model by only adding a single line of code!
Apache License 2.0
696 stars 38 forks source link

Dose it support ControlNet inpaint in SDXL? #16

Open Whoo-jl opened 2 months ago

ShenZhang-Shin commented 2 months ago

Yes, I'm working on it. It works fine. I will integrate it into the code soon. Here is an example. I directly edit 2K image using controlnet inpainting + hidiffusion input: christ

output: hidi_christ_27_seed_65_conditioning_scale_0 5_religious or historical artwork, Christian tradition style  Alien or Xenomorph sits on a rocky outcr

Whoo-jl commented 2 months ago

Yes, I'm working on it. It works fine. I will integrate it into the code soon.是的,我正在努力。它工作正常。我将很快将其集成到代码中。 Here is an example. I directly edit 2K image using controlnet inpainting + hidiffusion下面是一个示例。我使用 controlnet inpainting + hidiffusion 直接编辑 2K 图像 input: 输入: christ

output: 输出: hidi_christ_27_seed_65_conditioning_scale_0 5_religious or historical artwork, Christian tradition style Alien or Xenomorph sits on a rocky outcr

That's great! I can't wait to try it!

Yzhbuaa commented 2 months ago

Hello, which inpainting controlnet for SDXL did you use in the example above?

ShenZhang-Shin commented 2 months ago

Hello, which inpainting controlnet for SDXL did you use in the example above?

diffusers/controlnet-canny-sdxl-1.0

Yzhbuaa commented 2 months ago

Thank you for your quick reply! Did you mean that you use stabilityai/stable-diffusion-xl-base-1.0 conbined with diffusers/controlnet-canny-sdxl-1.0 to perform the image inpainting task? What is the benefit of using a canny controlnet rather than only sdxl?

ShenZhang-Shin commented 2 months ago

Thank you for your quick reply! Did you mean that you use stabilityai/stable-diffusion-xl-base-1.0 conbined with diffusers/controlnet-canny-sdxl-1.0 to perform the image inpainting task? What is the benefit of using a canny controlnet rather than only sdxl?

Yes.
Only use stabilityai/stable-diffusion-xl-base-1.0 can also do inpainting task, but the pose consistency is not as good as sdxl+controlnet. For example, here is the inpainting output only using sdxl+hidiffusion. You can see the difference. The inpainting code in readme is sdxl+hidiffusion. I will integrate sdxl+controlnet+hidiffusion into our codebase. 9_seed_141_48 77_oil painting, Alien or Xenomorph sitting on a white rocky outcrop