-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
img2img api ValueError: Coordinate 'right' is less than 'left' #10260
Comments
This happens when you're inpainting but there's no mask. I noticed this as well, some bug remove the mask randomly, not sure how to reproduce this. |
met the problem here, any solution? |
I have the same exception. |
Draw on the image mate. :) |
But how set, that it is an inpant, not just img2img? |
@andupotorac here we discuss an api, how to create curl request for inpanting draw? |
Oh, didn't notice that. Can't help with the API. |
The problem here is the webui expects the mask input to be a binary mask (RGB, only white and black), not an alpha mask. That being said some conversion should ideally happen automatically to correct this. Edit: Actually looks like some upstream breaking change with Gradio broke this. Will have a fix shortly. |
Fixed by #12588 |
Thank you! First, we wrote a crutch so that in .png the mask would be converted to black and white format without opacity. Now nothing works, although in version |
It's supposed to work for both. If it doesn't then something is going wrong. Last I tried both worked for me as of 1.6.0. |
You can try processing this image with the provided mask (both 1179x1280) The same pictures work fine on the version:
|
Your mask image is RGBA, and furthermore the alpha channel is not "full on" (i.e. a value of The previous behavior was not correct because it was unable to handle alpha masks, but as a side affect it was more tolerable to mistakes like this in images themselves. The behavior is fixed now but it means you must make sure your masks are made properly. |
Is there an existing issue for this?
What happened?
if i use mask and set inpaint_full_res =true
pyton will tip ValueError: Coordinate 'right' is less than 'left'
Steps to reproduce the problem
What should have happened?
i hope it can working
Commit where the problem happens
SHA-1: 5ab7f21
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
no
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: