invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.7k stars 2.43k forks source link

[bug]: [SOLVED] #6961

Closed paulerbear closed 1 month ago

paulerbear commented 1 month ago

Is there an existing issue for this problem?

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

RTX 4090

GPU VRAM

24

Version number

5.0

Browser

Chrome

Python dependencies

3.10.11

What happened

Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1] 1 Starting the InvokeAI browser-based UI.. Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\InvokeAI.venv\Scripts\invokeai-web.exe__main.py", line 7, in sys.exit(run_app()) File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app from invokeai.app.api_app import invoke_api File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api_app.py", line 23, in from invokeai.app.api.dependencies import ApiDependencies File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 14, in from invokeai.app.services.download.download_default import DownloadQueueService File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download__init__.py", line 10, in from invokeai.app.services.download.download_default import DownloadQueueService, TqdmProgress File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download\download_default.py", line 31, in from invokeai.app.services.events.events_base import EventServiceBase File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\events\init__.py", line 1, in from .events_base import EventServiceBase # noqa F401 File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\events\events_base.py", line 6, in from invokeai.app.services.events.events_common import ( File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\events\events_common.py", line 8, in from invokeai.app.services.session_queue.session_queue_common import ( File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\session_queue\session_queue_common.py", line 19, in from invokeai.app.services.shared.graph import Graph, GraphExecutionState, NodeNotFoundError File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\shared\graph.py", line 20, in from invokeai.app.invocations import * # noqa: F401 F403 File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\invocations\controlnet_image_processors.py", line 10, in from controlnet_aux import ( ModuleNotFoundError: No module named 'controlnet_aux' Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1]

What you expected to happen

I expected Invoke to initialise

How to reproduce the problem

No response

Additional context

When I enter dev console and "pip install controlnet_aux --force-reinstall --no-cache-dir"

(.venv) D:\InvokeAI>pip install controlnet_aux --force-reinstall --no-cache-dir Collecting controlnet_aux Downloading controlnet_aux-0.0.9-py3-none-any.whl.metadata (6.5 kB) Collecting torch (from controlnet_aux) Downloading torch-2.4.1-cp310-cp310-win_amd64.whl.metadata (27 kB) Collecting importlib-metadata (from controlnet_aux) Downloading importlib_metadata-8.5.0-py3-none-any.whl.metadata (4.8 kB) Collecting huggingface-hub (from controlnet_aux) Downloading huggingface_hub-0.25.1-py3-none-any.whl.metadata (13 kB) Collecting scipy (from controlnet_aux) Downloading scipy-1.14.1-cp310-cp310-win_amd64.whl.metadata (60 kB) Collecting opencv-python-headless (from controlnet_aux) Downloading opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB) Collecting filelock (from controlnet_aux) Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB) Collecting numpy (from controlnet_aux) Downloading numpy-2.1.1-cp310-cp310-win_amd64.whl.metadata (59 kB) Collecting Pillow (from controlnet_aux) Downloading pillow-10.4.0-cp310-cp310-win_amd64.whl.metadata (9.3 kB) Collecting einops (from controlnet_aux) Downloading einops-0.8.0-py3-none-any.whl.metadata (12 kB) Collecting torchvision (from controlnet_aux) Downloading torchvision-0.19.1-cp310-cp310-win_amd64.whl.metadata (6.1 kB) Collecting timm<=0.6.7 (from controlnet_aux) Downloading timm-0.6.7-py3-none-any.whl.metadata (33 kB) Collecting scikit-image (from controlnet_aux) Downloading scikit_image-0.24.0-cp310-cp310-win_amd64.whl.metadata (14 kB) Collecting typing-extensions>=4.8.0 (from torch->controlnet_aux) Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB) Collecting sympy (from torch->controlnet_aux) Downloading sympy-1.13.3-py3-none-any.whl.metadata (12 kB) Collecting networkx (from torch->controlnet_aux) Downloading networkx-3.3-py3-none-any.whl.metadata (5.1 kB) Collecting jinja2 (from torch->controlnet_aux) Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB) Collecting fsspec (from torch->controlnet_aux) Downloading fsspec-2024.9.0-py3-none-any.whl.metadata (11 kB) Collecting packaging>=20.9 (from huggingface-hub->controlnet_aux) Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB) Collecting pyyaml>=5.1 (from huggingface-hub->controlnet_aux) Downloading PyYAML-6.0.2-cp310-cp310-win_amd64.whl.metadata (2.1 kB) Collecting requests (from huggingface-hub->controlnet_aux) Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB) Collecting tqdm>=4.42.1 (from huggingface-hub->controlnet_aux) Downloading tqdm-4.66.5-py3-none-any.whl.metadata (57 kB) Collecting zipp>=3.20 (from importlib-metadata->controlnet_aux) Downloading zipp-3.20.2-py3-none-any.whl.metadata (3.7 kB) Collecting imageio>=2.33 (from scikit-image->controlnet_aux) Downloading imageio-2.35.1-py3-none-any.whl.metadata (4.9 kB) Collecting tifffile>=2022.8.12 (from scikit-image->controlnet_aux) Downloading tifffile-2024.9.20-py3-none-any.whl.metadata (32 kB) Collecting lazy-loader>=0.4 (from scikit-image->controlnet_aux) Downloading lazy_loader-0.4-py3-none-any.whl.metadata (7.6 kB) Collecting colorama (from tqdm>=4.42.1->huggingface-hub->controlnet_aux) Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting MarkupSafe>=2.0 (from jinja2->torch->controlnet_aux) Downloading MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl.metadata (3.1 kB) Collecting charset-normalizer<4,>=2 (from requests->huggingface-hub->controlnet_aux) Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl.metadata (34 kB) Collecting idna<4,>=2.5 (from requests->huggingface-hub->controlnet_aux) Downloading idna-3.10-py3-none-any.whl.metadata (10 kB) Collecting urllib3<3,>=1.21.1 (from requests->huggingface-hub->controlnet_aux) Downloading urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB) Collecting certifi>=2017.4.17 (from requests->huggingface-hub->controlnet_aux) Downloading certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB) Collecting mpmath<1.4,>=1.1.0 (from sympy->torch->controlnet_aux) Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB) Downloading controlnet_aux-0.0.9-py3-none-any.whl (282 kB) Downloading timm-0.6.7-py3-none-any.whl (509 kB) Downloading torch-2.4.1-cp310-cp310-win_amd64.whl (199.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.4/199.4 MB 20.9 MB/s eta 0:00:00 Downloading einops-0.8.0-py3-none-any.whl (43 kB) Downloading filelock-3.16.1-py3-none-any.whl (16 kB) Downloading huggingface_hub-0.25.1-py3-none-any.whl (436 kB) Downloading importlib_metadata-8.5.0-py3-none-any.whl (26 kB) Downloading numpy-2.1.1-cp310-cp310-win_amd64.whl (12.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 26.9 MB/s eta 0:00:00 Downloading opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.8/38.8 MB 25.9 MB/s eta 0:00:00 Downloading pillow-10.4.0-cp310-cp310-win_amd64.whl (2.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 29.4 MB/s eta 0:00:00 Downloading scikit_image-0.24.0-cp310-cp310-win_amd64.whl (12.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 25.2 MB/s eta 0:00:00 Downloading scipy-1.14.1-cp310-cp310-win_amd64.whl (44.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.8/44.8 MB 22.6 MB/s eta 0:00:00 Downloading torchvision-0.19.1-cp310-cp310-win_amd64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 21.8 MB/s eta 0:00:00 Downloading fsspec-2024.9.0-py3-none-any.whl (179 kB) Downloading imageio-2.35.1-py3-none-any.whl (315 kB) Downloading lazy_loader-0.4-py3-none-any.whl (12 kB) Downloading networkx-3.3-py3-none-any.whl (1.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 30.6 MB/s eta 0:00:00 Downloading packaging-24.1-py3-none-any.whl (53 kB) Downloading PyYAML-6.0.2-cp310-cp310-win_amd64.whl (161 kB) Downloading tifffile-2024.9.20-py3-none-any.whl (228 kB) Downloading tqdm-4.66.5-py3-none-any.whl (78 kB) Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB) Downloading zipp-3.20.2-py3-none-any.whl (9.2 kB) Downloading jinja2-3.1.4-py3-none-any.whl (133 kB) Downloading requests-2.32.3-py3-none-any.whl (64 kB) Downloading sympy-1.13.3-py3-none-any.whl (6.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 31.7 MB/s eta 0:00:00 Downloading certifi-2024.8.30-py3-none-any.whl (167 kB) Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB) Downloading idna-3.10-py3-none-any.whl (70 kB) Downloading MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB) Downloading mpmath-1.3.0-py3-none-any.whl (536 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 18.3 MB/s eta 0:00:00 Downloading urllib3-2.2.3-py3-none-any.whl (126 kB) Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB) Installing collected packages: mpmath, zipp, urllib3, typing-extensions, sympy, pyyaml, Pillow, packaging, numpy, networkx, MarkupSafe, idna, fsspec, filelock, einops, colorama, charset-normalizer, certifi, tqdm, tifffile, scipy, requests, opencv-python-headless, lazy-loader, jinja2, importlib-metadata, imageio, torch, scikit-image, huggingface-hub, torchvision, timm, controlnet_aux Attempting uninstall: mpmath Found existing installation: mpmath 1.3.0 Uninstalling mpmath-1.3.0: Successfully uninstalled mpmath-1.3.0 Attempting uninstall: zipp Found existing installation: zipp 3.20.2 Uninstalling zipp-3.20.2: Successfully uninstalled zipp-3.20.2 Attempting uninstall: urllib3 Found existing installation: urllib3 1.26.20 Uninstalling urllib3-1.26.20: Successfully uninstalled urllib3-1.26.20 Attempting uninstall: typing-extensions Found existing installation: typing_extensions 4.12.2 Uninstalling typing_extensions-4.12.2: Successfully uninstalled typing_extensions-4.12.2 Attempting uninstall: sympy Found existing installation: sympy 1.13.3 Uninstalling sympy-1.13.3: Successfully uninstalled sympy-1.13.3 Attempting uninstall: pyyaml Found existing installation: PyYAML 6.0.2 Uninstalling PyYAML-6.0.2: Successfully uninstalled PyYAML-6.0.2 Attempting uninstall: Pillow Found existing installation: pillow 10.4.0 Uninstalling pillow-10.4.0: Successfully uninstalled pillow-10.4.0 Attempting uninstall: packaging Found existing installation: packaging 24.1 Uninstalling packaging-24.1: Successfully uninstalled packaging-24.1 Attempting uninstall: numpy Found existing installation: numpy 1.26.4 Uninstalling numpy-1.26.4: Successfully uninstalled numpy-1.26.4 Attempting uninstall: networkx Found existing installation: networkx 3.3 Uninstalling networkx-3.3: Successfully uninstalled networkx-3.3 Attempting uninstall: MarkupSafe Found existing installation: MarkupSafe 2.1.5 Uninstalling MarkupSafe-2.1.5: Successfully uninstalled MarkupSafe-2.1.5 Attempting uninstall: idna Found existing installation: idna 3.10 Uninstalling idna-3.10: Successfully uninstalled idna-3.10 Attempting uninstall: fsspec Found existing installation: fsspec 2024.3.1 Uninstalling fsspec-2024.3.1: Successfully uninstalled fsspec-2024.3.1 Attempting uninstall: filelock Found existing installation: filelock 3.16.1 Uninstalling filelock-3.16.1: Successfully uninstalled filelock-3.16.1 Attempting uninstall: einops Found existing installation: einops 0.8.0 Uninstalling einops-0.8.0: Successfully uninstalled einops-0.8.0 Attempting uninstall: colorama Found existing installation: colorama 0.4.6 Uninstalling colorama-0.4.6: Successfully uninstalled colorama-0.4.6 Attempting uninstall: charset-normalizer Found existing installation: charset-normalizer 3.3.2 Uninstalling charset-normalizer-3.3.2: Successfully uninstalled charset-normalizer-3.3.2 Attempting uninstall: certifi Found existing installation: certifi 2024.8.30 Uninstalling certifi-2024.8.30: Successfully uninstalled certifi-2024.8.30 Attempting uninstall: tqdm Found existing installation: tqdm 4.66.5 Uninstalling tqdm-4.66.5: Successfully uninstalled tqdm-4.66.5 Attempting uninstall: tifffile Found existing installation: tifffile 2024.9.20 Uninstalling tifffile-2024.9.20: Successfully uninstalled tifffile-2024.9.20 Found existing installation: scipy 1.14.1 Uninstalling scipy-1.14.1: Successfully uninstalled scipy-1.14.1 Attempting uninstall: requests Found existing installation: requests 2.28.2 Uninstalling requests-2.28.2: Successfully uninstalled requests-2.28.2 Attempting uninstall: opencv-python-headless Found existing installation: opencv-python-headless 4.10.0.84 Uninstalling opencv-python-headless-4.10.0.84: Successfully uninstalled opencv-python-headless-4.10.0.84 Attempting uninstall: lazy-loader Found existing installation: lazy_loader 0.4 Uninstalling lazy_loader-0.4: Successfully uninstalled lazy_loader-0.4 Attempting uninstall: jinja2 Found existing installation: Jinja2 3.1.4 Uninstalling Jinja2-3.1.4: Successfully uninstalled Jinja2-3.1.4 Attempting uninstall: importlib-metadata Found existing installation: importlib_metadata 8.5.0 Uninstalling importlib_metadata-8.5.0: Successfully uninstalled importlib_metadata-8.5.0 Attempting uninstall: imageio Found existing installation: imageio 2.35.1 Uninstalling imageio-2.35.1: Successfully uninstalled imageio-2.35.1 Attempting uninstall: torch Found existing installation: torch 2.2.2+cu121 Uninstalling torch-2.2.2+cu121: Successfully uninstalled torch-2.2.2+cu121 Attempting uninstall: scikit-image Found existing installation: scikit-image 0.21.0 Uninstalling scikit-image-0.21.0: Successfully uninstalled scikit-image-0.21.0 Attempting uninstall: huggingface-hub Found existing installation: huggingface-hub 0.23.1 Uninstalling huggingface-hub-0.23.1: Successfully uninstalled huggingface-hub-0.23.1 Attempting uninstall: torchvision Found existing installation: torchvision 0.17.2+cu121 Uninstalling torchvision-0.17.2+cu121: Successfully uninstalled torchvision-0.17.2+cu121 Attempting uninstall: timm Found existing installation: timm 0.6.13 Uninstalling timm-0.6.13: Successfully uninstalled timm-0.6.13 Attempting uninstall: controlnet_aux Found existing installation: controlnet_aux 0.0.7 Uninstalling controlnet_aux-0.0.7: Successfully uninstalled controlnet_aux-0.0.7 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. invokeai 5.0.0 requires controlnet-aux==0.0.7, but you have controlnet-aux 0.0.9 which is incompatible. invokeai 5.0.0 requires huggingface-hub==0.23.1, but you have huggingface-hub 0.25.1 which is incompatible. invokeai 5.0.0 requires numpy==1.26.4, but you have numpy 2.1.1 which is incompatible. invokeai 5.0.0 requires requests~=2.28.2, but you have requests 2.32.3 which is incompatible. invokeai 5.0.0 requires scikit-image~=0.21.0, but you have scikit-image 0.24.0 which is incompatible. invokeai 5.0.0 requires timm==0.6.13, but you have timm 0.6.7 which is incompatible. invokeai 5.0.0 requires torch==2.2.2, but you have torch 2.4.1 which is incompatible. invokeai 5.0.0 requires torchvision==0.17.2, but you have torchvision 0.19.1 which is incompatible. datasets 2.19.1 requires fsspec[http]<=2024.3.1,>=2023.1.0, but you have fsspec 2024.9.0 which is incompatible. numba 0.60.0 requires numpy<2.1,>=1.22, but you have numpy 2.1.1 which is incompatible. xformers 0.0.25.post1 requires torch==2.2.2, but you have torch 2.4.1 which is incompatible. Successfully installed MarkupSafe-2.1.5 Pillow-10.4.0 certifi-2024.8.30 charset-normalizer-3.3.2 colorama-0.4.6 controlnet_aux-0.0.9 einops-0.8.0 filelock-3.16.1 fsspec-2024.9.0 huggingface-hub-0.25.1 idna-3.10 imageio-2.35.1 importlib-metadata-8.5.0 jinja2-3.1.4 lazy-loader-0.4 mpmath-1.3.0 networkx-3.3 numpy-2.1.1 opencv-python-headless-4.10.0.84 packaging-24.1 pyyaml-6.0.2 requests-2.32.3 scikit-image-0.24.0 scipy-1.14.1 sympy-1.13.3 tifffile-2024.9.20 timm-0.6.7 torch-2.4.1 torchvision-0.19.1 tqdm-4.66.5 typing-extensions-4.12.2 urllib3-2.2.3 zipp-3.20.2

Discord username

Pauler_Bear

paulerbear commented 1 month ago

after I enter dev console and "pip install controlnet_aux --force-reinstall --no-cache-dir" and seeing the errors relatred to incompatible dependencies:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. invokeai 5.0.0 requires controlnet-aux==0.0.7, but you have controlnet-aux 0.0.9 which is incompatible. invokeai 5.0.0 requires huggingface-hub==0.23.1, but you have huggingface-hub 0.25.1 which is incompatible. invokeai 5.0.0 requires numpy==1.26.4, but you have numpy 2.1.1 which is incompatible. invokeai 5.0.0 requires requests~=2.28.2, but you have requests 2.32.3 which is incompatible. invokeai 5.0.0 requires scikit-image~=0.21.0, but you have scikit-image 0.24.0 which is incompatible. invokeai 5.0.0 requires timm==0.6.13, but you have timm 0.6.7 which is incompatible. invokeai 5.0.0 requires torch==2.2.2, but you have torch 2.4.1 which is incompatible. invokeai 5.0.0 requires torchvision==0.17.2, but you have torchvision 0.19.1 which is incompatible. datasets 2.19.1 requires fsspec[http]<=2024.3.1,>=2023.1.0, but you have fsspec 2024.9.0 which is incompatible. numba 0.60.0 requires numpy<2.1,>=1.22, but you have numpy 2.1.1 which is incompatible. xformers 0.0.25.post1 requires torch==2.2.2, but you have torch 2.4.1 which is incompatible. Successfully installed MarkupSafe-2.1.5 Pillow-10.4.0 certifi-2024.8.30 charset-normalizer-3.3.2 colorama-0.4.6 controlnet_aux-0.0.9 einops-0.8.0 filelock-3.16.1 fsspec-2024.9.0 huggingface-hub-0.25.1 idna-3.10 imageio-2.35.1 importlib-metadata-8.5.0 jinja2-3.1.4 lazy-loader-0.4 mpmath-1.3.0 networkx-3.3 numpy-2.1.1 opencv-python-headless-4.10.0.84 packaging-24.1 pyyaml-6.0.2 requests-2.32.3 scikit-image-0.24.0 scipy-1.14.1 sympy-1.13.3 tifffile-2024.9.20 timm-0.6.7 torch-2.4.1 torchvision-0.19.1 tqdm-4.66.5 typing-extensions-4.12.2 urllib3-2.2.3 zipp-3.20.2

I ran invoke.bat again and am met with these erros:

Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1] 1 Starting the InvokeAI browser-based UI..

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.1 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\InvokeAI.venv\Scripts\invokeai-web.exe__main.py", line 7, in sys.exit(run_app()) File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app from invokeai.app.api_app import invoke_api File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api_app.py", line 21, in import invokeai.backend.util.hotfixes # noqa: F401 (monkeypatching on import) File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\util\hotfixes.py", line 6, in from diffusers.loaders import FromOriginalControlNetMixin File "D:\InvokeAI.venv\lib\site-packages\diffusers\utils\import_utils.py", line 708, in getattr module = self._get_module(self._class_to_module[name]) File "D:\InvokeAI.venv\lib\site-packages\diffusers\utils\import_utils.py", line 718, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Program Files\Python310\lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "D:\InvokeAI.venv\lib\site-packages\diffusers\loaders\controlnet.py", line 17, in from .single_file_utils import ( File "D:\InvokeAI.venv\lib\site-packages\diffusers\loaders\single_file_utils.py", line 26, in from ..models.modeling_utils import load_state_dict File "D:\InvokeAI.venv\lib\site-packages\diffusers\models\modeling_utils.py", line 58, in import accelerate File "D:\InvokeAI.venv\lib\site-packages\accelerate__init.py", line 16, in from .accelerator import Accelerator File "D:\InvokeAI.venv\lib\site-packages\accelerate\accelerator.py", line 35, in from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state File "D:\InvokeAI.venv\lib\site-packages\accelerate\checkpointing.py", line 24, in from .utils import ( File "D:\InvokeAI.venv\lib\site-packages\accelerate\utils__init.py", line 182, in from .fsdp_utils import load_fsdp_model, load_fsdp_optimizer, save_fsdp_model, save_fsdp_optimizer File "D:\InvokeAI.venv\lib\site-packages\accelerate\utils\fsdp_utils.py", line 26, in import torch.distributed.checkpoint as dist_cp File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\checkpoint__init.py", line 10, in from .optimizer import load_sharded_optimizer_state_dict File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\checkpoint\optimizer.py", line 40, in from torch.distributed.fsdp._shard_utils import _create_chunk_sharded_tensor File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp__init__.py", line 2, in from .fully_sharded_data_parallel import ( File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp\fully_sharded_data_parallel.py", line 26, in import torch.distributed.fsdp._traversal_utils as traversal_utils File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp_traversal_utils.py", line 12, in from torch.distributed._composable.contract import _get_registry File "D:\InvokeAI.venv\lib\site-packages\torch\distributed_composable\init.py", line 3, in from .fully_shard import fully_shard File "D:\InvokeAI.venv\lib\site-packages\torch\distributed_composable\fully_shard.py", line 12, in from torch.distributed.fsdp._init_utils import ( File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp_init_utils.py", line 59, in from torch.distributed.tensor.parallel.fsdp import DTensorExtensions File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel\init__.py", line 2, in from torch.distributed.tensor.parallel.api import parallelize_module File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel\api.py", line 15, in from torch.distributed.tensor.parallel._utils import _validate_tp_mesh_dim File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel_utils.py", line 9, in from torch._dynamo.external_utils import is_compiling as is_torchdynamo_compiling File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\init__.py", line 2, in from . import convert_frame, eval_frame, resume_execution File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\convert_frame.py", line 48, in from . import config, exc, trace_rules File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\trace_rules.py", line 52, in from .variables import ( File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\variables\init__.py", line 38, in from .higher_order_ops import ( File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\variables\higher_order_ops.py", line 14, in import torch.onnx.operators File "D:\InvokeAI.venv\lib\site-packages\torch\onnx\init__.py", line 62, in from ._internal.onnxruntime import ( File "D:\InvokeAI.venv\lib\site-packages\torch\onnx_internal\onnxruntime.py", line 37, in import onnxruntime # type: ignore[import] File "D:\InvokeAI.venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "D:\InvokeAI.venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import * # noqa AttributeError: _ARRAY_API not found ImportError: numpy.core.multiarray failed to import

The above exception was the direct cause of the following exception:

SystemError: returned a result with an exception set WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.2.2+cu121 with CUDA 1201 (you have 2.4.1+cpu) Python 3.10.11 (you have 3.10.11) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available. Set XFORMERS_MORE_DETAILS=1 for more details D:\InvokeAI.venv\lib\site-packages\xformers\ops\swiglu_op.py:107: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead. def forward(cls, ctx, x, w1, b1, w2, b2, w3, b3): D:\InvokeAI.venv\lib\site-packages\xformers\ops\swiglu_op.py:128: FutureWarning: torch.cuda.amp.custom_bwd(args...) is deprecated. Please use torch.amp.custom_bwd(args..., device_type='cuda') instead. def backward(cls, ctx, dx5): The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable. Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\InvokeAI.venv\Scripts\invokeai-web.exe__main__.py", line 7, in sys.exit(run_app()) File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app from invokeai.app.api_app import invoke_api File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api_app.py", line 23, in from invokeai.app.api.dependencies import ApiDependencies File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 14, in from invokeai.app.services.download.download_default import DownloadQueueService File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download__init.py", line 3, in from invokeai.app.services.download.download_base import ( File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download\download_base.py", line 13, in from invokeai.backend.model_manager.metadata import RemoteModelFile File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\init.py", line 19, in from invokeai.backend.model_manager.metadata.fetch import HuggingFaceMetadataFetch, ModelMetadataFetchBase File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\fetch\init__.py", line 14, in from invokeai.backend.model_manager.metadata.fetch.huggingface import HuggingFaceMetadataFetch File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\fetch\huggingface.py", line 23, in from huggingface_hub.utils._errors import RepositoryNotFoundError, RevisionNotFoundError ModuleNotFoundError: No module named 'huggingface_hub.utils._errors' Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1]

paulerbear commented 1 month ago

I was troubleshooting this issue on the official discord with the help of the moderator named gogurt_enjoyer. We have isolated a potential conflict related to my installation of miniconda. Testing further.

paulerbear commented 1 month ago

I uninstalled miniconda, deleted the unzipper installer folder, deleted the installation folder for invoke re-installed invoke from a freshly unzipped installer encountered controlnet_aux error entered dev and ran pip install controlnet_aux --force-reinstall --no-cache-dir" I encountered further errors related to missing dependencies

Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1] 1 Starting the InvokeAI browser-based UI..

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.1 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\InvokeAI.venv\Scripts\invokeai-web.exe__main.py", line 7, in sys.exit(run_app()) File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app from invokeai.app.api_app import invoke_api File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api_app.py", line 21, in import invokeai.backend.util.hotfixes # noqa: F401 (monkeypatching on import) File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\util\hotfixes.py", line 6, in from diffusers.loaders import FromOriginalControlNetMixin File "D:\InvokeAI.venv\lib\site-packages\diffusers\utils\import_utils.py", line 708, in getattr module = self._get_module(self._class_to_module[name]) File "D:\InvokeAI.venv\lib\site-packages\diffusers\utils\import_utils.py", line 718, in _get_module return importlib.import_module("." + module_name, self.name) File "C:\Program Files\Python310\lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "D:\InvokeAI.venv\lib\site-packages\diffusers\loaders\controlnet.py", line 17, in from .single_file_utils import ( File "D:\InvokeAI.venv\lib\site-packages\diffusers\loaders\single_file_utils.py", line 26, in from ..models.modeling_utils import load_state_dict File "D:\InvokeAI.venv\lib\site-packages\diffusers\models\modeling_utils.py", line 58, in import accelerate File "D:\InvokeAI.venv\lib\site-packages\accelerate__init.py", line 16, in from .accelerator import Accelerator File "D:\InvokeAI.venv\lib\site-packages\accelerate\accelerator.py", line 35, in from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state File "D:\InvokeAI.venv\lib\site-packages\accelerate\checkpointing.py", line 24, in from .utils import ( File "D:\InvokeAI.venv\lib\site-packages\accelerate\utils__init.py", line 182, in from .fsdp_utils import load_fsdp_model, load_fsdp_optimizer, save_fsdp_model, save_fsdp_optimizer File "D:\InvokeAI.venv\lib\site-packages\accelerate\utils\fsdp_utils.py", line 26, in import torch.distributed.checkpoint as dist_cp File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\checkpoint__init.py", line 10, in from .optimizer import load_sharded_optimizer_state_dict File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\checkpoint\optimizer.py", line 40, in from torch.distributed.fsdp._shard_utils import _create_chunk_sharded_tensor File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp__init__.py", line 2, in from .fully_sharded_data_parallel import ( File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp\fully_sharded_data_parallel.py", line 26, in import torch.distributed.fsdp._traversal_utils as traversal_utils File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp_traversal_utils.py", line 12, in from torch.distributed._composable.contract import _get_registry File "D:\InvokeAI.venv\lib\site-packages\torch\distributed_composable\init.py", line 3, in from .fully_shard import fully_shard File "D:\InvokeAI.venv\lib\site-packages\torch\distributed_composable\fully_shard.py", line 12, in from torch.distributed.fsdp._init_utils import ( File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\fsdp_init_utils.py", line 59, in from torch.distributed.tensor.parallel.fsdp import DTensorExtensions File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel\init__.py", line 2, in from torch.distributed.tensor.parallel.api import parallelize_module File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel\api.py", line 15, in from torch.distributed.tensor.parallel._utils import _validate_tp_mesh_dim File "D:\InvokeAI.venv\lib\site-packages\torch\distributed\tensor\parallel_utils.py", line 9, in from torch._dynamo.external_utils import is_compiling as is_torchdynamo_compiling File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\init__.py", line 2, in from . import convert_frame, eval_frame, resume_execution File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\convert_frame.py", line 48, in from . import config, exc, trace_rules File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\trace_rules.py", line 52, in from .variables import ( File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\variables\init__.py", line 38, in from .higher_order_ops import ( File "D:\InvokeAI.venv\lib\site-packages\torch_dynamo\variables\higher_order_ops.py", line 14, in import torch.onnx.operators File "D:\InvokeAI.venv\lib\site-packages\torch\onnx\init__.py", line 62, in from ._internal.onnxruntime import ( File "D:\InvokeAI.venv\lib\site-packages\torch\onnx_internal\onnxruntime.py", line 37, in import onnxruntime # type: ignore[import] File "D:\InvokeAI.venv\lib\site-packages\onnxruntime\init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 File "D:\InvokeAI.venv\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import * # noqa AttributeError: _ARRAY_API not found ImportError: numpy.core.multiarray failed to import

The above exception was the direct cause of the following exception:

SystemError: returned a result with an exception set WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.2.2+cu121 with CUDA 1201 (you have 2.4.1+cpu) Python 3.10.11 (you have 3.10.11) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available. Set XFORMERS_MORE_DETAILS=1 for more details D:\InvokeAI.venv\lib\site-packages\xformers\ops\swiglu_op.py:107: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead. def forward(cls, ctx, x, w1, b1, w2, b2, w3, b3): D:\InvokeAI.venv\lib\site-packages\xformers\ops\swiglu_op.py:128: FutureWarning: torch.cuda.amp.custom_bwd(args...) is deprecated. Please use torch.amp.custom_bwd(args..., device_type='cuda') instead. def backward(cls, ctx, dx5): The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable. Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "D:\InvokeAI.venv\Scripts\invokeai-web.exe__main__.py", line 7, in sys.exit(run_app()) File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app from invokeai.app.api_app import invoke_api File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api_app.py", line 23, in from invokeai.app.api.dependencies import ApiDependencies File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 14, in from invokeai.app.services.download.download_default import DownloadQueueService File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download__init.py", line 3, in from invokeai.app.services.download.download_base import ( File "D:\InvokeAI.venv\lib\site-packages\invokeai\app\services\download\download_base.py", line 13, in from invokeai.backend.model_manager.metadata import RemoteModelFile File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\init.py", line 19, in from invokeai.backend.model_manager.metadata.fetch import HuggingFaceMetadataFetch, ModelMetadataFetchBase File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\fetch\init__.py", line 14, in from invokeai.backend.model_manager.metadata.fetch.huggingface import HuggingFaceMetadataFetch File "D:\InvokeAI.venv\lib\site-packages\invokeai\backend\model_manager\metadata\fetch\huggingface.py", line 23, in from huggingface_hub.utils._errors import RepositoryNotFoundError, RevisionNotFoundError ModuleNotFoundError: No module named 'huggingface_hub.utils._errors' Desired action:

  1. Generate images with the browser-based interface
  2. Open the developer console
  3. Command-line help Q - Quit

To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest

Please enter 1-4, Q: [1] Screenshot 2024-09-27 095158

can the installer.bat not be updated to specify ignore cache when installing dependencies?

paulerbear commented 1 month ago

SOLVED: Uninstall Conda/miniconda DELETE \AppData\Local\pip\cache DELETE the unzipped installer folder DELETE the install directory Unzip the installer Run installer bat