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

应该是依赖版本不对,但不清除具体是要哪个版本 #19

Open
calonye opened this issue Aug 10, 2023 · 2 comments
Open

应该是依赖版本不对,但不清除具体是要哪个版本 #19

calonye opened this issue Aug 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@calonye
Copy link

calonye commented Aug 10, 2023

Layer Divider Extension : applying configs to model..
Traceback (most recent call last):
File "/home/ubuntu/aigc/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "/home/ubuntu/aigc/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1326, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/ubuntu/aigc/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1260, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/ubuntu/aigc/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 4457, in postprocess
file = self.img_array_to_temp_file(img, dir=self.DEFAULT_TEMP_DIR)
File "/home/ubuntu/aigc/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 355, in img_array_to_temp_file
return self.pil_to_temp_file(pil_image, dir, format="png")
TypeError: save_pil_to_file() got an unexpected keyword argument 'format'

环境,
python3.10.10
pip 23.2.1

pytoshop 1.2.1
Cython 3.0.0

onnx 1.13.1
numba 0.56.4
numpy 1.23.5

--
SD 1.3.2   torch: 2.0.1+cu118  •  xformers: 0.0.19

@calonye calonye added the bug Something isn't working label Aug 10, 2023
@jhj0517
Copy link
Owner

jhj0517 commented Aug 10, 2023

Hi @calonye.
This looks like bug related with gradio. since gradio has major updates recently, the old version of gradio became problematic in several project, which I've also experienced in other project.

So using latest gradio would solve this problem,
You can simply update your SD WebUI to 1.5.1 which is latest version.
I've just tested it, it works fine in latest version of SD WebUI.

@calonye
Copy link
Author

calonye commented Aug 11, 2023

原来如此,但是我现在不敢更新至1.5.1版本,因为我同时在使用supervisor,以保护webui进程,但是我只要更新webui的版,我的supervisor就无法对webui进程进行保护了,我在github提问过,但是没有人回答我。
这让我很为难
总之,感谢你的建议,当webui再次更新版本时,我再尝试一下。因为supervisor保护webui进程的功能,对我来说很重要。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants