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

Quick edit of preprocessor result with photopea #2346

Merged
merged 12 commits into from
Dec 30, 2023

Conversation

huchenlei
Copy link
Collaborator

@huchenlei huchenlei commented Dec 22, 2023

Closes #1736.
Provides better experience on #2148.

How to use it during inpaint:
Task, generate a necklace on the girl's neck with a specific shape.
Step1: Draw inpaint mask.
s1 (1)
Step2: Upload necklace image and preprocess with canny.
s2 (1)
Step3: Click Edit on generated preprocessor image. A photopea editor modal will popup. The preprocessor image will be fetched from controlnet and paste in the editor automatically.
s3 (1)
Step4: Align the position of the necklace canny edge map to desired location.
s4 (1)
Step5: Click Send to ControlNet on the top left corner of the modal to update the canny edge map used by ControlNet.
s5
Step6: Generate.
s6

@huchenlei huchenlei marked this pull request as ready for review December 25, 2023 05:23
@huchenlei huchenlei requested a review from sdbds December 25, 2023 05:23
@huchenlei huchenlei added the enhancement New feature or request label Dec 25, 2023
@huchenlei
Copy link
Collaborator Author

Example showing how to align multiple Control maps.
Task: Use softedge to control hand gesture of the girl. Use openpose to control rest part of the image.

Apply a mask on softedge map. The edited image:
ds1

Screen Capture 037 - Stable Diffusion - 127 0 0 1
Screen Capture 038 - Stable Diffusion - 127 0 0 1

Generated result:
00000-2893318736

@huchenlei
Copy link
Collaborator Author

Hi @sdbds, Can you help try out this new feature and offer some feedbacks? Thanks!

@huchenlei
Copy link
Collaborator Author

I am going to merge this PR and see users' reaction.

@huchenlei huchenlei merged commit a23dbfc into Mikubill:main Dec 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Idea] Edit ControlNet inputs with layer control
1 participant