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

How to generate mask image and use the mask image as the ControlNetUnit class parameter? #134

Open
derekcbr opened this issue Nov 4, 2023 · 0 comments

Comments

@derekcbr
Copy link

derekcbr commented Nov 4, 2023

class ControlNetUnit:
def init(
self,
input_image: Image = None,
mask: Image = None,
....
)
How to generate mask image and use the mask image as the ControlNetUnit class parameter?
r = api.controlnet_detect(images=[img], module='canny')
r.image
Is using detect function right to generate the mask 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

1 participant