hako-mikan / sd-webui-supermerger

model merge extention for stable diffusion web ui
GNU Affero General Public License v3.0
749 stars 112 forks source link

Bug multiple Weight sum | Add difference | Triple sum | sum Twice #244

Closed XT-404 closed 1 year ago

XT-404 commented 1 year ago

Hello, I'm writing to report a bug. If I happen to touch the following elements:

Weight sum | Add difference | Triple sum | Sum Twice

I encounter errors in the console just by selecting the specific modules.

Since the update, I also find myself unable to use this feature: Beta. I have a crossed-out circular cursor, preventing me from interacting (see screenshot).

I've reinstalled "Super merge" several times, but to no avail. I constantly face the issue of console errors and this circle that prevents me from using the Beta function.

image

Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info' Traceback (most recent call last): File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1326, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1251, in postprocess_data prediction_value = postprocess_update_dict( File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 423, in postprocess_update_dict update_dict = block.get_specific_update(update_dict) File "W:\A1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 308, in get_specific_update specific_update = cls.update(**generic_update) TypeError: Radio.update() got an unexpected keyword argument 'info'

wkpark commented 1 year ago

beta slider is only activated when mode is "Triple sum" or "sum Twice", or calcmode is "tensor" or "tensor2"

TypeError: Radio.update() got an unexpected keyword argument 'info'

I guess, you are using an outdated gradio package.

https://github.com/hako-mikan/sd-webui-supermerger/assets/232347/3bdb94f2-b01d-4284-9fd8-a9ab8bca9838

XT-404 commented 1 year ago

@wkpark

I can activate any model, the cursor remains blocked I have done multiple tests I have the cursor permanently blocked

XT-404 commented 1 year ago

thx

hako-mikan commented 1 year ago

Is the issue still persisting?

XT-404 commented 1 year ago

Le problème persiste-t-il ?

YES

XT-404 commented 1 year ago

Le problème persiste-t-il ?

the problem and resolve yes thank you very much for the information

hako-mikan commented 1 year ago

Could you please tell me the version of gradio?

wkpark commented 1 year ago

@XT-404 // recommended gradio version is gradio==3.41.2, and you can check your gradio version with pip show gradio command (in windows, you can prepare your venv environment, with venv\activate\activate command)

pip show gradio
WARNING: Ignoring invalid distribution -rotobuf (f:\webui\webui\stable-diffusion-webui\venv\lib\site-packages)
Name: gradio
Version: 3.41.2
Summary: Python library for easily interacting with trained machine learning models
Home-page:
Author:
Author-email: Abubakar Abid <team@gradio.app>, Ali Abid <team@gradio.app>, Ali Abdalla <team@gradio.app>, Dawood Khan <team@gradio.app>, Ahsen Khaliq <team@gradio.app>, Pete Allen <team@gradio.app>, Ömer Faruk Özdemir <team@gradio.app>
License:
Location: f:\webui\webui\stable-diffusion-webui\venv\lib\site-packages
Requires: aiofiles, altair, fastapi, ffmpy, gradio-client, httpx, huggingface-hub, importlib-resources, jinja2, markupsafe, matplotlib, numpy, orjson, packaging, pandas, pillow, pydantic, pydub, python-multipart, pyyaml, requests, semantic-version, typing-extensions, uvicorn, websockets
Required-by:
wkpark commented 1 year ago

I can reproduce this error with sd-webui v1.5.2

simply upgrade the gradio version will solve it. (e.g. pip install gradio==3.41.2)

fix both requirements.txt and requirements_versions.txt will fix this issue. for example

diff --git a/requirements.txt b/requirements.txt
index b3f8a7f4..03cfc7aa 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,7 +7,7 @@ blendmodes
 clean-fid
 einops
 gfpgan
-gradio==3.32.0
+gradio==3.41.2
 inflection
 jsonmerge
 kornia
diff --git a/requirements_versions.txt b/requirements_versions.txt
index d07ab456..b2c7f37d 100644
--- a/requirements_versions.txt
+++ b/requirements_versions.txt
@@ -7,7 +7,7 @@ clean-fid==0.1.35
 einops==0.4.1
 fastapi==0.94.0
 gfpgan==1.3.8
-gradio==3.32.0
+gradio==3.41.2
 httpcore==0.15
 inflection==0.5.1
 jsonmerge==1.8.0