-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits
What happened?
The GPU on my laptop is pretty weak, so I tried running it on the CPU using arguments from the wiki:
[link]
--use-cpu all --precision full --no-half --skip-torch-cuda-test
However, I got a runtime error (RTE):
launch.py: error: unrecognized arguments: --use-cpu all --precision full --no-half --skip-torch-cuda-test
Only run ./webui.bat with the arguments --precision full --no-half --skip-torch-cuda-test, along with manually adjusting specific lines in
[link to devices.py],
made a difference as a workaround.
Steps to reproduce the problem
- Go to https://github.com/openvinotoolkit/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings and find "Running on CPU" point
- Adjust webui-user.bat:6 accordingly
- ./ webui-user.bat
The same issue if run ./webui.bat --use-cpu all --precision full --no-half --skip-torch-cuda-test
What should have happened?
The application should run and all model check points should be loaded to cpu device
Sysinfo
MINGW64 /h/Downloads/stable-diffusion-webui-1.10.1/stable-diffusion-webui-1.10.1
$ ./webui.bat --dump-sysinfo
venv "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\Scripts\Python.exe"
H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: pytorch_lightning.utilities.distributed.rank_zero_only has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from pytorch_lightning.utilities instead.
rank_zero_deprecation(
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\launch.py", line 48, in
main()
File "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\launch.py", line 29, in main
filename = launch_utils.dump_sysinfo()
File "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 476, in dump_sysinfo
text = sysinfo.get()
File "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\sysinfo.py", line 46, in get
res = get_dict()
File "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\sysinfo.py", line 119, in get_dict
"Extensions": get_extensions(enabled=True, fallback_disabled_extensions=config.get('disabled_extensions', [])),
AttributeError: 'str' object has no attribute 'get'
Press any key to continue . .
What browsers do you use to access the UI ?
Opera
Console logs
MINGW64 /h/Downloads/stable-diffusion-webui-1.10.1/stable-diffusion-webui-1.10.1
$ ./webui-user.bat
venv "H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.10.1
Commit hash: <none>
Launching Web UI with arguments: '--use-cpu all --precision full --no-half --skip-torch-cuda-test'
H:\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
usage: launch.py [-h] [--update-all-extensions] [--skip-python-version-check] [--skip-torch-cuda-test] [--reinstall-xformers] [--reinstall-torch] [--update-check] [--test-server] [--log-startup] [--skip-prepare-environment]
[--skip-install] [--dump-sysinfo] [--loglevel LOGLEVEL] [--do-not-download-clip] [--data-dir DATA_DIR] [--models-dir MODELS_DIR] [--config CONFIG] [--ckpt CKPT] [--ckpt-dir CKPT_DIR] [--vae-dir VAE_DIR]
[--gfpgan-dir GFPGAN_DIR] [--gfpgan-model GFPGAN_MODEL] [--no-half] [--no-half-vae] [--no-progressbar-hiding] [--max-batch-count MAX_BATCH_COUNT] [--embeddings-dir EMBEDDINGS_DIR]
[--textual-inversion-templates-dir TEXTUAL_INVERSION_TEMPLATES_DIR] [--hypernetwork-dir HYPERNETWORK_DIR] [--localizations-dir LOCALIZATIONS_DIR] [--allow-code] [--medvram] [--medvram-sdxl] [--lowvram]
[--lowram] [--always-batch-cond-uncond] [--unload-gfpgan] [--precision {full,half,autocast}] [--upcast-sampling] [--share] [--ngrok NGROK] [--ngrok-region NGROK_REGION] [--ngrok-options NGROK_OPTIONS]
[--enable-insecure-extension-access] [--codeformer-models-path CODEFORMER_MODELS_PATH] [--gfpgan-models-path GFPGAN_MODELS_PATH] [--esrgan-models-path ESRGAN_MODELS_PATH]
[--bsrgan-models-path BSRGAN_MODELS_PATH] [--realesrgan-models-path REALESRGAN_MODELS_PATH] [--dat-models-path DAT_MODELS_PATH] [--clip-models-path CLIP_MODELS_PATH] [--xformers] [--force-enable-xformers]
[--xformers-flash-attention] [--deepdanbooru] [--opt-split-attention] [--opt-sub-quad-attention] [--sub-quad-q-chunk-size SUB_QUAD_Q_CHUNK_SIZE] [--sub-quad-kv-chunk-size SUB_QUAD_KV_CHUNK_SIZE]
[--sub-quad-chunk-threshold SUB_QUAD_CHUNK_THRESHOLD] [--opt-split-attention-invokeai] [--opt-split-attention-v1] [--opt-sdp-attention] [--opt-sdp-no-mem-attention] [--disable-opt-split-attention]
[--disable-nan-check] [--use-cpu USE_CPU [USE_CPU ...]] [--use-ipex] [--disable-model-loading-ram-optimization] [--listen] [--port PORT] [--show-negative-prompt] [--ui-config-file UI_CONFIG_FILE]
[--hide-ui-dir-config] [--freeze-settings] [--freeze-settings-in-sections FREEZE_SETTINGS_IN_SECTIONS] [--freeze-specific-settings FREEZE_SPECIFIC_SETTINGS] [--ui-settings-file UI_SETTINGS_FILE]
[--gradio-debug] [--gradio-auth GRADIO_AUTH] [--gradio-auth-path GRADIO_AUTH_PATH] [--gradio-img2img-tool GRADIO_IMG2IMG_TOOL] [--gradio-inpaint-tool GRADIO_INPAINT_TOOL]
[--gradio-allowed-path GRADIO_ALLOWED_PATH] [--opt-channelslast] [--styles-file STYLES_FILE] [--autolaunch] [--theme THEME] [--use-textbox-seed] [--disable-console-progressbars] [--enable-console-prompts]
[--vae-path VAE_PATH] [--disable-safe-unpickle] [--api] [--api-auth API_AUTH] [--api-log] [--nowebui] [--ui-debug-mode] [--device-id DEVICE_ID] [--administrator] [--cors-allow-origins CORS_ALLOW_ORIGINS]
[--cors-allow-origins-regex CORS_ALLOW_ORIGINS_REGEX] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE] [--disable-tls-verify] [--server-name SERVER_NAME] [--gradio-queue] [--no-gradio-queue]
[--skip-version-check] [--no-hashing] [--no-download-sd-model] [--subpath SUBPATH] [--add-stop-route] [--api-server-stop] [--timeout-keep-alive TIMEOUT_KEEP_ALIVE] [--disable-all-extensions]
[--disable-extra-extensions] [--skip-load-model-at-start] [--unix-filenames-sanitization] [--filenames-max-length FILENAMES_MAX_LENGTH] [--no-prompt-history] [--ldsr-models-path LDSR_MODELS_PATH]
[--lora-dir LORA_DIR] [--lyco-dir-backcompat LYCO_DIR_BACKCOMPAT] [--scunet-models-path SCUNET_MODELS_PATH] [--swinir-models-path SWINIR_MODELS_PATH]
launch.py: error: unrecognized arguments: --use-cpu all --precision full --no-half --skip-torch-cuda-test
Press any key to continue . . .Additional information
No response