-
Notifications
You must be signed in to change notification settings - Fork 25.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' #15793
Comments
To walk around the issue, you need:
I don't know why the file downloaded by webui itself is ok but mine is not. I even checked the SHA256 checksum. It's so wired and waste me a lot of time. |
It seems that it may not be due to file integrity. I have no idea then. Good luck with you ! |
When I completely reinstalled the project, it worked for the first time, but when I added other models, the project would throw this exception, I found that after I deleted the models I added manually, the project could run normally again; |
I removed all models, fresh install, trying to switch to default model (as it was pulled again) and see |
Checklist
What happened?
I've done a fresh install using this automated setup file/instruction: viking1304/a1111-setup#2
I still get
AttributeError: 'NoneType' object has no attribute 'lowvram'
error message in the browser when trying to generate an image or load a modelSteps to reproduce the problem
What should have happened?
generate images as expected?
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
{
"Platform": "macOS-13.6.3-x86_64-i386-64bit",
"Python": "3.10.14",
"Version": "v1.9.3",
"Commit": "1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0",
"Script path": "/Users/thomasmclaughlin/stable-diffusion-webui",
"Data path": "/Users/thomasmclaughlin/stable-diffusion-webui",
"Extensions dir": "/Users/thomasmclaughlin/stable-diffusion-webui/extensions",
"Checksum": "a71d5230d4b09eda5a5cb0ad0af4a92603e3c20d85b23a32d1aeabf66ffb2d2b",
"Commandline": [
"launch.py",
"--skip-torch-cuda-test",
"--upcast-sampling",
"--no-half-vae",
"--use-cpu",
"interrogate"
],
"Torch env info": {
"torch_version": "2.2.0",
"is_debug_build": "False",
"cuda_compiled_version": null,
"gcc_version": null,
"clang_version": "12.0.0 (clang-1200.0.32.29)",
"cmake_version": "version 3.29.3",
"os": "macOS 13.6.3 (x86_64)",
"libc_version": "N/A",
"python_version": "3.10.14 (main, Mar 19 2024, 21:46:16) [Clang 15.0.0 (clang-1500.1.0.2.5)] (64-bit runtime)",
"python_platform": "macOS-13.6.3-x86_64-i386-64bit",
"is_cuda_available": "False",
"cuda_runtime_version": null,
"cuda_module_loading": "N/A",
"nvidia_driver_version": null,
"nvidia_gpu_models": null,
"cudnn_version": null,
"pip_version": "pip3",
"pip_packages": [
"numpy==1.26.2",
"open-clip-torch==2.20.0",
"pytorch-lightning==1.9.4",
"torch==2.2.0.dev20231010",
"torchdiffeq==0.2.3",
"torchmetrics==1.4.0",
"torchsde==0.2.6",
"torchvision==0.17.0.dev20231010"
],
"conda_packages": null,
"hip_compiled_version": "N/A",
"hip_runtime_version": "N/A",
"miopen_runtime_version": "N/A",
"caching_allocator_config": "",
"is_xnnpack_available": "True",
"cpu_info": "Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz"
},
"Exceptions": [
{
"exception": "'NoneType' object has no attribute 'lowvram'",
"traceback": [
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 57, f",
"res = list(func(*args, **kwargs))"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 36, f",
"res = func(*args, **kwargs)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/txt2img.py, line 109, txt2img",
"processed = processing.process_images(p)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/processing.py, line 832, process_images",
"sd_models.reload_model_weights()"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 860, reload_model_weights",
"sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 793, reuse_model_from_already_loaded",
"send_model_to_cpu(sd_model)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 662, send_model_to_cpu",
"if m.lowvram:"
]
]
},
{
"exception": "'NoneType' object has no attribute 'lowvram'",
"traceback": [
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 57, f",
"res = list(func(*args, **kwargs))"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 36, f",
"res = func(*args, **kwargs)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/txt2img.py, line 109, txt2img",
"processed = processing.process_images(p)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/processing.py, line 832, process_images",
"sd_models.reload_model_weights()"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 860, reload_model_weights",
"sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 793, reuse_model_from_already_loaded",
"send_model_to_cpu(sd_model)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 662, send_model_to_cpu",
"if m.lowvram:"
]
]
},
{
"exception": "'NoneType' object has no attribute 'lowvram'",
"traceback": [
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 57, f",
"res = list(func(*args, **kwargs))"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 36, f",
"res = func(*args, **kwargs)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/txt2img.py, line 109, txt2img",
"processed = processing.process_images(p)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/processing.py, line 832, process_images",
"sd_models.reload_model_weights()"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 860, reload_model_weights",
"sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 793, reuse_model_from_already_loaded",
"send_model_to_cpu(sd_model)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 662, send_model_to_cpu",
"if m.lowvram:"
]
]
},
{
"exception": "'NoneType' object has no attribute 'lowvram'",
"traceback": [
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 57, f",
"res = list(func(*args, **kwargs))"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 36, f",
"res = func(*args, **kwargs)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/txt2img.py, line 109, txt2img",
"processed = processing.process_images(p)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/processing.py, line 832, process_images",
"sd_models.reload_model_weights()"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 860, reload_model_weights",
"sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 793, reuse_model_from_already_loaded",
"send_model_to_cpu(sd_model)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 662, send_model_to_cpu",
"if m.lowvram:"
]
]
},
{
"exception": "'NoneType' object has no attribute 'lowvram'",
"traceback": [
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/options.py, line 165, set",
"option.onchange()"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/call_queue.py, line 13, f",
"res = func(*args, **kwargs)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/initialize_util.py, line 181, ",
"shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 860, reload_model_weights",
"sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 793, reuse_model_from_already_loaded",
"send_model_to_cpu(sd_model)"
],
[
"/Users/thomasmclaughlin/stable-diffusion-webui/modules/sd_models.py, line 662, send_model_to_cpu",
"if m.lowvram:"
]
]
}
],
"CPU": {
"model": "i386",
"count logical": 8,
"count physical": 4
},
"RAM": {
"total": "16GB",
"used": "9GB",
"free": "166MB",
"active": "6GB",
"inactive": "5GB"
},
"Extensions": [],
"Inactive extensions": [],
"Environment": {
"COMMANDLINE_ARGS": "--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate",
"GIT": "git",
"GRADIO_ANALYTICS_ENABLED": "False",
"TORCH_COMMAND": "pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu"
},
"Config": {
"ldsr_steps": 100,
"ldsr_cached": false,
"SCUNET_tile": 256,
"SCUNET_tile_overlap": 8,
"SWIN_tile": 192,
"SWIN_tile_overlap": 8,
"SWIN_torch_compile": false,
"hypertile_enable_unet": false,
"hypertile_enable_unet_secondpass": false,
"hypertile_max_depth_unet": 3,
"hypertile_max_tile_unet": 256,
"hypertile_swap_size_unet": 3,
"hypertile_enable_vae": false,
"hypertile_max_depth_vae": 3,
"hypertile_max_tile_vae": 128,
"hypertile_swap_size_vae": 3,
"sd_model_checkpoint": "v1-5-pruned-emaonly.safetensors [6ce0161689]",
"sd_checkpoint_hash": "6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa"
},
"Startup": {
"total": 1394.5017268657684,
"records": {
"initial startup": 0.0017948150634765625,
"prepare environment/checks": 0.00012803077697753906,
"prepare environment/git version info": 0.03627800941467285,
"prepare environment/install torch": 73.99712896347046,
"prepare environment/torch GPU test": 2.8848648071289062e-05,
"prepare environment/install clip": 6.799776077270508,
"prepare environment/install open_clip": 6.3331379890441895,
"prepare environment/clone repositores": 31.969136953353882,
"prepare environment/install requirements": 51.7264130115509,
"prepare environment/run extensions installers": 0.0006480216979980469,
"prepare environment": 170.86249089241028,
"launcher": 0.007987022399902344,
"import torch": 4.932553052902222,
"import gradio": 0.7838048934936523,
"setup paths": 1.3083140850067139,
"import ldm": 0.032701969146728516,
"import sgm": 7.867813110351562e-06,
"initialize shared": 0.2062370777130127,
"other imports": 1.0896401405334473,
"opts onchange": 0.0005178451538085938,
"setup SD model": 8.702278137207031e-05,
"setup codeformer": 0.003304004669189453,
"setup gfpgan": 0.0067980289459228516,
"set samplers": 4.315376281738281e-05,
"list extensions": 0.0010807514190673828,
"restore config state file": 1.0013580322265625e-05,
"list SD models": 1211.7901101112366,
"list localizations": 0.003938913345336914,
"load scripts/custom_code.py": 0.011410236358642578,
"load scripts/img2imgalt.py": 0.009813785552978516,
"load scripts/loopback.py": 0.0044231414794921875,
"load scripts/outpainting_mk_2.py": 0.012867927551269531,
"load scripts/poor_mans_outpainting.py": 0.00356292724609375,
"load scripts/postprocessing_codeformer.py": 0.0025010108947753906,
"load scripts/postprocessing_gfpgan.py": 0.0018310546875,
"load scripts/postprocessing_upscale.py": 0.00765681266784668,
"load scripts/prompt_matrix.py": 0.0036492347717285156,
"load scripts/prompts_from_file.py": 0.00461888313293457,
"load scripts/sd_upscale.py": 0.00616908073425293,
"load scripts/xyz_grid.py": 0.02607107162475586,
"load scripts/ldsr_model.py": 0.4685349464416504,
"load scripts/lora_script.py": 0.5496799945831299,
"load scripts/scunet_model.py": 0.060070037841796875,
"load scripts/swinir_model.py": 0.06432700157165527,
"load scripts/hotkey_config.py": 0.0028319358825683594,
"load scripts/extra_options_section.py": 0.0037012100219726562,
"load scripts/hypertile_script.py": 0.12613582611083984,
"load scripts/hypertile_xyz.py": 0.00042891502380371094,
"load scripts/postprocessing_autosized_crop.py": 0.0031549930572509766,
"load scripts/postprocessing_caption.py": 0.00144195556640625,
"load scripts/postprocessing_create_flipped_copies.py": 0.001435995101928711,
"load scripts/postprocessing_focal_crop.py": 0.011153221130371094,
"load scripts/postprocessing_split_oversized.py": 0.002106904983520508,
"load scripts/soft_inpainting.py": 0.006776094436645508,
"load scripts/comments.py": 0.055504798889160156,
"load scripts/refiner.py": 0.002582073211669922,
"load scripts/sampler.py": 0.002046823501586914,
"load scripts/seed.py": 0.0026912689208984375,
"load scripts": 1.4592630863189697,
"load upscalers": 0.011837005615234375,
"refresh VAE": 0.0022759437561035156,
"refresh textual inversion templates": 0.0009620189666748047,
"scripts list_optimizers": 0.0008859634399414062,
"scripts list_unets": 4.6253204345703125e-05,
"reload hypernetworks": 0.0015668869018554688,
"initialize extra networks": 0.02116107940673828,
"scripts before_ui_callback": 0.0008487701416015625,
"create ui": 1.0236432552337646,
"gradio launch": 0.9025290012359619,
"add APIs": 0.04110574722290039,
"app_started_callback/lora_script.py": 0.004281044006347656,
"app_started_callback": 0.0043032169342041016
}
},
"Packages": [
"accelerate==0.21.0",
"aenum==3.1.15",
"aiofiles==23.2.1",
"aiohttp==3.9.5",
"aiosignal==1.3.1",
"altair==5.3.0",
"antlr4-python3-runtime==4.9.3",
"anyio==3.7.1",
"async-timeout==4.0.3",
"attrs==23.2.0",
"blendmodes==2022",
"certifi==2024.2.2",
"charset-normalizer==3.3.2",
"clean-fid==0.1.35",
"click==8.1.7",
"clip==1.0",
"colorama==0.4.6",
"contourpy==1.2.1",
"cycler==0.12.1",
"deprecation==2.1.0",
"diskcache==5.6.3",
"einops==0.4.1",
"exceptiongroup==1.2.1",
"facexlib==0.3.0",
"fastapi==0.94.0",
"ffmpy==0.3.2",
"filelock==3.13.1",
"filterpy==1.4.5",
"fonttools==4.51.0",
"frozenlist==1.4.1",
"fsspec==2024.2.0",
"ftfy==6.2.0",
"gitdb==4.0.11",
"gitpython==3.1.32",
"gradio-client==0.5.0",
"gradio==3.41.2",
"h11==0.12.0",
"httpcore==0.15.0",
"httpx==0.24.1",
"huggingface-hub==0.23.0",
"idna==3.7",
"imageio==2.34.1",
"importlib-resources==6.4.0",
"inflection==0.5.1",
"jinja2==3.1.3",
"jsonmerge==1.8.0",
"jsonschema-specifications==2023.12.1",
"jsonschema==4.22.0",
"kiwisolver==1.4.5",
"kornia==0.6.7",
"lark==1.1.2",
"lazy-loader==0.4",
"lightning-utilities==0.11.2",
"llvmlite==0.42.0",
"markupsafe==2.1.5",
"matplotlib==3.8.4",
"mpmath==1.2.1",
"multidict==6.0.5",
"networkx==3.2.1",
"numba==0.59.1",
"numpy==1.26.2",
"omegaconf==2.2.3",
"open-clip-torch==2.20.0",
"opencv-python==4.9.0.80",
"orjson==3.10.3",
"packaging==24.0",
"pandas==2.2.2",
"piexif==1.1.3",
"pillow-avif-plugin==1.4.3",
"pillow==9.5.0",
"pip==24.0",
"pretty-errors==1.2.25",
"protobuf==3.20.0",
"psutil==5.9.5",
"pydantic==1.10.15",
"pydub==0.25.1",
"pyparsing==3.1.2",
"python-dateutil==2.9.0.post0",
"python-multipart==0.0.9",
"pytorch-lightning==1.9.4",
"pytz==2024.1",
"pywavelets==1.6.0",
"pyyaml==6.0.1",
"referencing==0.35.1",
"regex==2024.5.10",
"requests==2.31.0",
"resize-right==0.0.2",
"rpds-py==0.18.1",
"safetensors==0.4.2",
"scikit-image==0.21.0",
"scipy==1.13.0",
"semantic-version==2.10.0",
"sentencepiece==0.2.0",
"setuptools==69.2.0",
"six==1.16.0",
"smmap==5.0.1",
"sniffio==1.3.1",
"spandrel==0.1.6",
"starlette==0.26.1",
"sympy==1.12",
"tifffile==2024.5.10",
"timm==0.9.16",
"tokenizers==0.13.3",
"tomesd==0.1.3",
"toolz==0.12.1",
"torch==2.2.0.dev20231010",
"torchdiffeq==0.2.3",
"torchmetrics==1.4.0",
"torchsde==0.2.6",
"torchvision==0.17.0.dev20231010",
"tqdm==4.66.4",
"trampoline==0.1.2",
"transformers==4.30.2",
"typing-extensions==4.8.0",
"tzdata==2024.1",
"urllib3==2.2.1",
"uvicorn==0.29.0",
"wcwidth==0.2.13",
"websockets==11.0.3",
"yarl==1.9.4"
]
}
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: