Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ControlNet support? #56

Open
katopz opened this issue Mar 7, 2023 · 5 comments
Open

ControlNet support? #56

katopz opened this issue Mar 7, 2023 · 5 comments

Comments

@katopz
Copy link

katopz commented Mar 7, 2023

I think it would be nice to have ControlNet support.
Not sure how hard it gonna take for this task. 🤔

@zolrath
Copy link

zolrath commented May 26, 2023

Would absolutely love to use ControlNet scribble here!

@LaurentMazare
Copy link
Owner

I just merged some very basic support for ControlNet via #68 . The weight file data/controlnet.safetensors can be obtained from the HuggingFace hub here.

Note that this is for the "canny" version of ControlNet and the edge detection part has to be done before submitting the input image (I plan on fixing this soonish). Here is how to run it:

cargo run --example controlnet --features clap -- --cpu all --prompt "disco dancer with colorful lights" --input-image vermeer_canny_edged.png

The input image vermeer_canny_edged.png looked like:
vermeer_canny_edged

Generated image:
vermeer-gen

@katopz
Copy link
Author

katopz commented May 31, 2023

Cool! I learn a lot from this feature PR. Thanks!
I will find some free time to add other ControlNet capabilities.

@LaurentMazare
Copy link
Owner

Great that you find it helpful, I've also included the edge detection bit now (through an external crate) so there is no need to pre-process the original image anymore. There are also some specific instructions in the readme file.

@otdavies
Copy link

If I wanted to stack multiple controlnets together (depth, canny, normal) for example, how difficult would you estimate this to be to implement @LaurentMazare?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants