fast-stable-diffusion: got an error from colab "AttributeError: 'Slider' object has no attribute 'elem_classes'"

Calculating sha256 for /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/22meinamix_meinaV8.safetensors: 30953ab0def62b5d0e90b8f84bd40f0af6048426c5f851535563e28fdee0684a Loading weights [30953ab0de] from /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion/22meinamix_meinaV8.safetensors Creating model from config: /content/gdrive/MyDrive/sd/stable-diffusion-webui/configs/v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Downloading100% 961k/961k [00:00<00:00, 6.39MB/s] Downloading100% 525k/525k [00:00<00:00, 3.83MB/s] Downloading100% 389/389 [00:00<00:00, 463kB/s] Downloading100% 905/905 [00:00<00:00, 1.02MB/s] Downloading100% 4.52k/4.52k [00:00<00:00, 6.89MB/s] Applying xformers cross attention optimization. Textual inversion embeddings loaded(1): easynegative Model loaded in 65.3s (calculate hash: 41.1s, load weights from disk: 15.0s, create model: 3.2s, apply weights to model: 3.9s, apply half(): 1.0s, move model to device: 0.8s, load textual inversion embeddings: 0.2s). Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 337, in <module> webui() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 240, in webui shared.demo = modules.ui.create_ui();shared.demo.queue(concurrency_count=999999,status_update_rate=0.1) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/ui.py", line 457, in create_ui modules.scripts.scripts_txt2img.initialize_scripts(is_img2img=False) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 290, in initialize_scripts script = script_class() File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 127, in __init__ self.txt2img_w_slider = gr.Slider() File "/usr/local/lib/python3.9/dist-packages/gradio/components.py", line 662, in __init__ IOComponent.__init__( File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 536, in IOComponent_init add_classes_to_gradio_component(self) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 521, in add_classes_to_gradio_component comp.elem_classes = ["gradio-" + comp.get_block_name(), *(comp.elem_classes or [])] AttributeError: 'Slider' object has no attribute 'elem_classes'

ive been using these for a month, got this error…

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 7
  • Comments: 23 (5 by maintainers)

Most upvoted comments

How to roll it back?

Same here

the problem is automatic1111 just upgrade the gradio to 3.23, i rolled it back to 3.16.2 it worked.

please share how to do it, thanks!

the problem is automatic1111 just upgrade the gradio to 3.23, i rolled it back to 3.16.2 it worked.