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

Fix upscale script checking #2881

Merged
merged 1 commit into from
May 11, 2024
Merged

Fix upscale script checking #2881

merged 1 commit into from
May 11, 2024

Conversation

seancheung
Copy link
Contributor

If Hires fix is enabled, controlnet inpu image will always be cropped since Hires fix's script name is Hires Upscale(r).
This causes issues with some extensions like ADetailer.
One case is when using IP-Adapter FaceID with ADetailer, the input face image will be cropped, and Insightface will fail to detect faces in the cropped image.

Screenshot 2024-05-11 052216

This pull request fixes this issue.

For future improvement, I suggest that a new argument (e.g. is_cropping_disabled with default value False) should be added to allow third-party extension to disable this cropping feature.

image

Copy link
Collaborator

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@huchenlei huchenlei merged commit 3b4eedd into Mikubill:main May 11, 2024
2 checks passed
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.

2 participants