-
Notifications
You must be signed in to change notification settings - Fork 27
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
Getting a unexpected keyword argument 'format' error #42
Comments
me too, cant find case, the error that only occurred after today's upgrade will now be found in any image |
I have looked at the error message and tried to solve it. The reason seems to be due to compatibility issues with gradio version. My guess is that our version is too high. Of course, this is just my assumption. A temporary solution is to find the file gradio\components.py in venv\Lib\site-packages\gradio\components.py, around line 355. There are two functions, pil_to_temp_file and img_array_to_temp_file. I changed the code of these two functions as follows: def pil_to_temp_file(self, img: _Image.Image, dir: str) -> str: def img_array_to_temp_file(self, arr: np.ndarray, dir: str) -> str: I deleted the variable format in these two functions and finally solved the problem. I hope the author will consider this compatibility issue. |
I also have the same error, i hope they can fix it |
opparco/stable-diffusion-webui-two-shot#54 |
…nction that broke after updating gradio
我也是,不过把stabel diffusion更新到最新的2023.06.27版本后,这个问题就消失了。 |
Modify file def save_pil_to_file(self, pil_image, dir=None, format="png"): |
Running on Automatic1111
This error appears when an image is uploaded or dragged (it doesn't matter if the image is JPG or PNG).
The text was updated successfully, but these errors were encountered: