Skip to content

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

Open
@derekcbr

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions