Skip to content

Question about Canny and Scribble Control in imagen3_editing.ipynb: Control Strength and Scribble Application Process #1838

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

Open
1 task done
richard2thompson opened this issue Mar 18, 2025 · 2 comments
Assignees

Comments

@richard2thompson
Copy link

File Name

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/vision/getting-started/imagen3_editing.ipynb

What happened?

Hello,

I have a question regarding the imagen3_editing.ipynb notebook, specifically concerning the Canny and Scribble ControlNet controls.

Firstly, in the example provided for Canny control, I noticed that Canny edge detection seems to be applied as a preprocessing step to the input image before it's used as a control. I'm interested in understanding how to control the strength or influence of this Canny control. Is there a parameter or setting that allows me to adjust how closely the generated image follows the Canny edges? I'd like to know if it's possible to make the generation more or less reliant on the Canny control.

Secondly, when looking at the Scribble control example, I don't see a similar explicit preprocessing step like the Canny edge detection being applied. This leads me to wonder about the correct way to apply the Scribble control. Could you please clarify the process for using Scribble control effectively within imagen3_editing.ipynb? Specifically, I'm unsure if there's a specific type of input image expected for Scribble, or if there are particular steps needed to prepare a Scribble image for use with the ControlNet.

Any guidance on controlling the Canny strength and the proper application of Scribble control would be greatly appreciated.

Thank you for your help!

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@richard2thompson
Copy link
Author

Hi @katiemn

We were just wondering if there are any updates

@katiemn
Copy link
Contributor

katiemn commented Apr 17, 2025

Hello, I updated https://github.com/GoogleCloudPlatform/generative-ai/blob/main/vision/getting-started/imagen3_customization.ipynb with an example on using Controlled Customization with a scribble input image.

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

2 participants