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

Add ControlNet tile model handling to img2img and inpaint modes #65

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Danamir
Copy link
Contributor

@Danamir Danamir commented May 17, 2023

Use alwayson_scripts in payload to submit the img2img or inpaint image to ControlNet 'tile' model. With added controls for ControlNet weight, guidance start, and guidance end, this allow to use a much greater denoising strength when inpainting, and let the tile model handle the image coherency.

To do :

  • Add radio button to select ControlNet mode
  • Add sliders to control CN weight, guidance start, guidance end
  • Alter API payload
  • Remove unwanted returned image by CN API
    • The image can be useful, left as is for now
  • Store settings locally
  • Allow multiple ControlNet modes selected at once (same settings to simplify)
  • Load controlnet modules from API on launch
  • Replace hardcoded tile model name by the correct one from the API
  • Disable ControlNet radio buttons if not found on API side

@Danamir
Copy link
Contributor Author

Danamir commented May 18, 2023

Added tentative support for other ControlNet modules and models. This allow the feature detection, and use of adapted controlnet model.

Associated modules to models :

  • lineart_coarse => lineart
  • pidinet_scribble => scribble
  • openpose_faceonly & openpose_full => openpose

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

Successfully merging this pull request may close these issues.

1 participant