vladmandic / sd-extension-chainner

SD.Next extension for additional upscalers based on chaiNNer
GNU General Public License v3.0
13 stars 1 forks source link

Installed in SD.Next - AttributeError #1

Closed MysticDaedra closed 1 year ago

MysticDaedra commented 1 year ago

Gives an AttributeError and then crashes when installed on SD.Next:

┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ F:\automatic\launch.py:213 in <module>                                                                              │
│                                                                                                                     │
│   212                                                                                                               │
│ > 213     uv, instance = start_server(immediate=True, server=None)                                                  │
│   214     while True:                                                                                               │
│                                                                                                                     │
│ F:\automatic\launch.py:156 in start_server                                                                          │
│                                                                                                                     │
│   155         else:                                                                                                 │
│ > 156             uvicorn = server.webui(restart=not immediate)                                                     │
│   157     if args.profile:                                                                                          │
│                                                                                                                     │
│ F:\automatic\webui.py:304 in webui                                                                                  │
│                                                                                                                     │
│   303                                                                                                               │
│ > 304     start_common()                                                                                            │
│   305     start_ui()                                                                                                │
│                                                                                                                     │
│ F:\automatic\webui.py:216 in start_common                                                                           │
│                                                                                                                     │
│   215     async_policy()                                                                                            │
│ > 216     initialize()                                                                                              │
│   217     if shared.opts.clean_temp_dir_at_start:                                                                   │
│                                                                                                                     │
│ F:\automatic\webui.py:111 in initialize                                                                             │
│                                                                                                                     │
│   110                                                                                                               │
│ > 111     modelloader.load_upscalers()                                                                              │
│   112     timer.startup.record("upscalers")                                                                         │
│                                                                                                                     │
│ F:\automatic\modules\modelloader.py:451 in load_upscalers                                                           │
│                                                                                                                     │
│   450         commandline_model_path = commandline_options.get(cmd_name, None)                                      │
│ > 451         scaler = cls(commandline_model_path)                                                                  │
│   452         scaler.user_path = commandline_model_path                                                             │
│                                                                                                                     │
│ F:\automatic\extensions\sd-extension-chainner\scripts\chainner_model.py:40 in __init__                              │
│                                                                                                                     │
│    39         self.fp16 = False                                                                                     │
│ >  40         self.scalers = self.find_scalers()                                                                    │
│    41                                                                                                               │
│                                                                                                                     │
│ F:\automatic\extensions\sd-extension-chainner\scripts\chainner_model.py:46 in find_scalers                          │
│                                                                                                                     │
│    45         for model in chainner_models:                                                                         │
│ >  46             local_name = os.path.join(self.user_path, modelloader.friendly_fullname(mode                      │
│    47             model_path = local_name if os.path.exists(local_name) else model[1]                               │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
AttributeError: module 'modules.modelloader' has no attribute 'friendly_fullname'
Press any key to continue . . .
vladmandic commented 1 year ago

fixed. it was using function available only in sdnext dev version, but now its available generally.