huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
25.25k stars 5.23k forks source link

[ControlNet] How to reproduce cartoon to realistic photo #3036

Closed zechenghe closed 1 year ago

zechenghe commented 1 year ago

How can I reproduce the ControlNet cartoon-> realistic photo example? Since both the content and color are preserved, I do not think the control signal is canny/HED/hough/depth/sketch/pose/norm etc? https://github.com/huggingface/diffusers/releases image

innat-asj commented 1 year ago

Didn't find this figure in original paper if its officially claims. cc. @takuma104 san.

yiyixuxu commented 1 year ago

https://www.reddit.com/r/StableDiffusion/comments/11ef0zx/realistic_lofi_girl_v3/

innat-asj commented 1 year ago

Cool. It would be great to reproduce those steps with diffusers and add it as example.

patrickvonplaten commented 1 year ago

Cool challenge! Let's try to reproduce the image using diffusers :-) We could maybe also make a doc page about it to show how to achieve the same results between A1111 and diffusers. Also related: https://github.com/huggingface/diffusers/issues/2431#issuecomment-1497613750

innat-asj commented 1 year ago

stale.

innat-asj commented 1 year ago

stale.

patrickvonplaten commented 1 year ago

Hey @innat-asj,

I sadly won't have the time trying to reproduce it - it's much trickier than I thought. But the workflow should be as follows: https://colab.research.google.com/drive/1OZohZY6b-Jx2Q4YUkzxUFefHN961R1aa?usp=sharing

Note that you probably have to do multiple rounds of image-to-image and controlnet to get it working

patrickvonplaten commented 1 year ago

Hope that helps!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.