acheong08 / Diffusion-ColabUI

Choose your diffusion models and spin up a WebUI on Colab in one click
Apache License 2.0
421 stars 64 forks source link

AttributeError: 'Options' object has no attribute 'extra_networks_card_height' #120

Closed St-ZFeng closed 1 year ago

St-ZFeng commented 1 year ago
Textual inversion embeddings loaded(0): 
Model loaded in 21.7s (calculate hash: 7.2s, load weights from disk: 1.8s, create model: 4.5s, apply weights to model: 2.7s, apply half(): 1.2s, load VAE: 3.6s, move model to device: 0.6s).
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /content/stable-diffusion-webui/launch.py:356 in <module>                    │
│                                                                              │
│   353                                                                        │
│   354 if __name__ == "__main__":                                             │
│   355 │   prepare_environment()                                              │
│ ❱ 356 │   start()                                                            │
│   357                                                                        │
│                                                                              │
│ /content/stable-diffusion-webui/launch.py:351 in start                       │
│                                                                              │
│   348 │   if '--nowebui' in sys.argv:                                        │
│   349 │   │   webui.api_only()                                               │
│   350 │   else:                                                              │
│ ❱ 351 │   │   webui.webui()                                                  │
│   352                                                                        │
│   353                                                                        │
│   354 if __name__ == "__main__":                                             │
│                                                                              │
│ /content/stable-diffusion-webui/webui.py:243 in webui                        │
│                                                                              │
│   240 │   │   modules.script_callbacks.before_ui_callback()                  │
│   241 │   │   startup_timer.record("scripts before_ui_callback")             │
│   242 │   │                                                                  │
│ ❱ 243 │   │   shared.demo = modules.ui.create_ui()                           │
│   244 │   │   startup_timer.record("create ui")                              │
│   245 │   │                                                                  │
│   246 │   │   if not cmd_opts.no_gradio_queue:                               │
│                                                                              │
│ /content/stable-diffusion-webui/modules/ui.py:492 in create_ui               │
│                                                                              │
│    489 │   │   │   │   │                                                     │
│    490 │   │   │   │   │   with gr.Row(elem_id="txt2img_extra_networks_row", │
│    491 │   │   │   │   │   │   from modules import ui_extra_networks         │
│ ❱  492 │   │   │   │   │   │   extra_networks_ui = ui_extra_networks.create_ │
│    493 │   │   │   │   │                                                     │
│    494 │   │   │   │   │   #with gr.Accordion("Parameters", open=True):      │
│    495                                                                       │
│                                                                              │
│ /content/stable-diffusion-webui/modules/ui_extra_networks.py:256 in          │
│ create_ui                                                                    │
│                                                                              │
│   253 │   │   │   for page in ui.stored_extra_pages:                         │
│   254 │   │   │   │   with gr.Tab(page.title):                               │
│   255 │   │   │   │   │                                                      │
│ ❱ 256 │   │   │   │   │   page_elem = gr.HTML(page.create_html(ui.tabname))  │
│   257 │   │   │   │   │   ui.pages.append(page_elem)                         │
│   258 │   │                                                                  │
│   259 │   │   filter = gr.Textbox('', show_label=False, elem_id=tabname+"_ex │
│                                                                              │
│ /content/stable-diffusion-webui/modules/ui_extra_networks.py:122 in          │
│ create_html                                                                  │
│                                                                              │
│   119 │   │   │   if metadata:                                               │
│   120 │   │   │   │   self.metadata[item["name"]] = metadata                 │
│   121 │   │   │                                                              │
│ ❱ 122 │   │   │   items_html += self.create_html_for_item(item, tabname)     │
│   123 │   │                                                                  │
│   124 │   │   if items_html == '':                                           │
│   125 │   │   │   dirs = "".join([f"<li>{x}</li>" for x in self.allowed_dire │
│                                                                              │
│ /content/stable-diffusion-webui/modules/ui_extra_networks.py:157 in          │
│ create_html_for_item                                                         │
│                                                                              │
│   154 │   │   if onclick is None:                                            │
│   155 │   │   │   onclick = '"' + html.escape(f"""return cardClicked({json.d │
│   156 │   │                                                                  │
│ ❱ 157 │   │   height = f"height: {shared.opts.extra_networks_card_height}px; │
│   158 │   │   width = f"width: {shared.opts.extra_networks_card_width}px;" i │
│   159 │   │   background_image = f"background-image: url(\"{html.escape(prev │
│   160 │   │   metadata_button = ""                                           │
│                                                                              │
│ /content/stable-diffusion-webui/modules/shared.py:480 in __getattr__         │
│                                                                              │
│   477 │   │   if item in self.data_labels:                                   │
│   478 │   │   │   return self.data_labels[item].default                      │
│   479 │   │                                                                  │
│ ❱ 480 │   │   return super(Options, self).__getattribute__(item)             │
│   481 │                                                                      │
│   482 │   def set(self, key, value):                                         │
│   483 │   │   """sets an option and calls its onchange callback, returning T │
╰──────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'Options' object has no attribute 'extra_networks_card_height'

I can’t use this colab.

acheong08 commented 1 year ago

issue with model?