alexv0iceh / AutoChar

Stable Diffusion WebUI extension for fast and easy automatic creation of detailed character art.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"No module named 'modules.shared_cmd_options'" error with SD.Next

LankyPoet opened this issue · comments

Really looking forward to trying this out! I added the script files to the folder as per the installation instructions.

I received the following error. Can this be updated to be compatible with SD.Next please? For reference: https://github.com/vladmandic/automatic .

Using VENV: C:\sdnext\venv
19:44:41-036339 INFO     Starting SD.Next
19:44:41-036339 INFO     Python 3.11.6 on Windows
19:44:41-129941 INFO     Version: app=sd.next updated=2023-11-20 hash=610e8964
                         url=https://github.com/vladmandic/automatic/tree/master
19:44:41-522442 INFO     Platform: arch=AMD64 cpu=Intel64 Family 6 Model 183 Stepping 1, GenuineIntel system=Windows
                         release=Windows-10-10.0.22631-SP0 python=3.11.6
19:44:41-538106 INFO     nVidia CUDA toolkit detected: nvidia-smi present
19:44:41-569325 WARNING  Modified files: ['scripts/AutoChar.py', 'scripts/face_detection_yunet_2022mar.onnx',
                         'scripts/face_detection_yunet_2023mar.onnx']
19:44:41-569325 INFO     Startup: standard
19:44:41-569325 INFO     Verifying requirements
19:44:41-584950 INFO     Verifying packages
19:44:41-584950 INFO     Verifying submodules
19:44:59-913304 INFO     Extensions enabled: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'sd-webui-controlnet', 'stable-diffusion-webui-images-browser',
                         'stable-diffusion-webui-rembg', 'adetailer', 'deforum-for-automatic1111-webui', 'OneButtonPrompt',
                         'sd-dynamic-prompts', 'sd-webui-animatediff', 'sd-webui-aspect-ratio-helper', 'sd-webui-faceswaplab',
                         'sd-webui-reactor']
19:44:59-913304 INFO     Verifying requirements
19:44:59-923304 INFO     Updating Wiki
19:45:00-324277 INFO     Extension preload: {'extensions-builtin': 0.0, 'extensions': 0.01}
19:45:00-324277 INFO     Command line args: ['--upgrade'] upgrade=True
19:45:16-062222 INFO     Load packages: torch=2.1.0+cu121 diffusers=0.23.0 gradio=3.43.2
19:45:17-648284 INFO     Engine: backend=Backend.DIFFUSERS compute=cuda mode=no_grad device=cuda
                         cross-optimization="Scaled-Dot-Product"
19:45:17-696307 INFO     Device: device=NVIDIA GeForce RTX 4090 n=1 arch=sm_90 cap=(8, 9) cuda=12.1 cudnn=8801 driver=546.01
19:45:19-294355 INFO     Available VAEs: path="models\VAE" items=4
19:45:19-298353 INFO     Disabling uncompatible extensions: backend=Backend.DIFFUSERS ['sd-webui-controlnet',
                         'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris']
19:45:19-506404 INFO     Available models: path="models\Stable-diffusion" items=83 time=0.21
19:45:20-218566 ERROR    Module load: C:\sdnext\scripts\AutoChar.py: ModuleNotFoundError
╭──────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────╮
│ C:\sdnext\modules\script_loading.py:21 in load_module                                                                             │
│                                                                                                                                   │
│   20 │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                                        │
│ ❱ 21 │   │   │   │   module_spec.loader.exec_module(module)                                                                       │
│   22 │   │   │   setup_logging() # reset since scripts can hijaack logging                                                        │
│ in exec_module:940                                                                                                                │
│ in _call_with_frames_removed:241                                                                                                  │
│                                                                                                                                   │
│ C:\sdnext\scripts\AutoChar.py:11 in <module>                                                                                      │
│                                                                                                                                   │
│    10 from modules.ui_components import FormRow                                                                                   │
│ ❱  11 from modules.shared_cmd_options import cmd_opts                                                                             │
│    12 from modules.shared_options import options_templates                                                                        │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'modules.shared_cmd_options'

Please update your A1111 to 1.6.0+ version

SDNext is not the same as A1111 so I cannot update like that. SD.Next is up to date with yesterday's release (latest).

@LankyPoet oh sorry, didn't read about SD.Next properly. I will look into it, but since it's a pain already to write just for A1111, I'd say it's not very likely for now.