picobyte / stable-diffusion-webui-wd14-tagger

Labeling extension for Automatic1111's Web UI
540 stars 64 forks source link

Cannot run on windows with error AttributeError: 'Checkbox' object has no attribute 'input' #41

Closed ingtellect closed 11 months ago

ingtellect commented 11 months ago

Hi, I just installed this extension and got the following error

Create LRU cache (max_size=16) for preprocessor results.
Error executing callback ui_tabs_callback for C:\Users\ingtellect\Documents\repo\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger-1.1.1\scripts\tagger.py
Traceback (most recent call last):
  File "C:\Users\ingtellect\Documents\repo\stable-diffusion-webui\modules\script_callbacks.py", line 134, in ui_tabs_callback
    res += c.callback() or []
  File "C:\Users\ingtellect\Documents\repo\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger-1.1.1\tagger\ui.py", line 394, in on_ui_tabs
    cumulative.input(fn=It.flip('cumulative'), inputs=[], outputs=[])
AttributeError: 'Checkbox' object has no attribute 'input'

I tried both 1.1.1 release and the latest commit 5735560 I am using windows 10 and python 3.10.9

How can I fix this?

picobyte commented 11 months ago

probably by upgrading gradio. 𝚙𝚒𝚙 𝚒𝚗𝚜𝚝𝚊𝚕𝚕 --𝚞𝚙𝚐𝚛𝚊𝚍𝚎 𝚐𝚛𝚊𝚍𝚒𝚘 I don't know where they introduced the input function, but I don't have this error.

WilliamChen-luckbob commented 11 months ago

just run pip install --upgrade gradio as maitainer mentioned and pull latest master branch of webui then run again,my problem solved