Closed KnobleSavage closed 1 year ago
After the above, when I try to run the invoke.bat, I get the following:
(invokeai) C:\invokeAI>invoke.bat Do you want to generate images using the
(invokeai) C:\invokeAI>
Tried manually installing yaml... that lead to this:
(invokeai) C:\invokeAI>python scripts\invoke.py --web
Traceback (most recent call last):
File "C:\invokeAI\scripts\invoke.py", line 12, in
(invokeai) C:\invokeAI>pip install pyyaml Collecting pyyaml Downloading PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB) ---------------------------------------- 151.7/151.7 kB 1.0 MB/s eta 0:00:00 Installing collected packages: pyyaml Successfully installed pyyaml-6.0
(invokeai) C:\invokeAI>invoke Do you want to generate images using the
Then had to manually install pillow, followed by pyparsing... and that's where I'm stuck:
(invokeai) C:\invokeAI>invoke Do you want to generate images using the
(invokeai) C:\invokeAI>pip install pillow Collecting pillow Downloading Pillow-9.3.0-cp310-cp310-win_amd64.whl (2.5 MB) ---------------------------------------- 2.5/2.5 MB 1.3 MB/s eta 0:00:00 Installing collected packages: pillow Successfully installed pillow-9.3.0
(invokeai) C:\invokeAI>invokeai 'invokeai' is not recognized as an internal or external command, operable program or batch file.
(invokeai) C:\invokeAI>invoke Do you want to generate images using the
(invokeai) C:\invokeAI>conda install -c conda-forge pyparsing Collecting package metadata (current_repodata.json): done Solving environment: done
environment location: C:\invokeAI\installer_files\env\envs\invokeai
added / updated specs:
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2022.9.24 | h5b45459_0 189 KB conda-forge
certifi-2022.9.24 | pyhd8ed1ab_0 155 KB conda-forge
openssl-1.1.1q | h8ffe710_0 5.8 MB conda-forge
pyparsing-3.0.9 | pyhd8ed1ab_0 79 KB conda-forge
------------------------------------------------------------
Total: 6.2 MB
The following NEW packages will be INSTALLED:
pyparsing conda-forge/noarch::pyparsing-3.0.9-pyhd8ed1ab_0 None
The following packages will be SUPERSEDED by a higher-priority channel:
ca-certificates pkgs/main::ca-certificates-2022.10.11~ --> conda-forge::ca-certificates-2022.9.24-h5b45459_0 None certifi pkgs/main/win-64::certifi-2022.9.24-p~ --> conda-forge/noarch::certifi-2022.9.24-pyhd8ed1ab_0 None openssl pkgs/main::openssl-1.1.1q-h2bbff1b_0 --> conda-forge::openssl-1.1.1q-h8ffe710_0 None
Proceed ([y]/n)? y
Downloading and Extracting Packages ca-certificates-2022 | 189 KB | ################################################################################################################################################################################################# | 100% pyparsing-3.0.9 | 79 KB | ################################################################################################################################################################################################# | 100% certifi-2022.9.24 | 155 KB | ################################################################################################################################################################################################# | 100% openssl-1.1.1q | 5.8 MB | ################################################################################################################################################################################################# | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Retrieving notices: ...working... done
(invokeai) C:\invokeAI>invoke Do you want to generate images using the
(invokeai) C:\invokeAI>
@cmdr2, there seems to be an issue with the new install.bat
script
@KnobleSavage Can you please try using the manual approach, and see if you get the same Pip subprocess error: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE
?
Manual approach: https://invoke-ai.github.io/InvokeAI/installation/INSTALL_WINDOWS/#conda
Thanks
@cmdr2 I'm happy to give those instructions a go, but are there any cleanup steps I need to take first?
(base) C:>git clone https://github.com/invoke-ai/InvokeAI.git Cloning into 'InvokeAI'... remote: Enumerating objects: 14255, done. remote: Counting objects: 100% (1919/1919), done. remote: Compressing objects: 100% (754/754), done. remote: Total 14255 (delta 1269), reused 1740 (delta 1158), pack-reused 12336 Receiving objects: 100% (14255/14255), 122.10 MiB | 12.65 MiB/s, done. Resolving deltas: 100% (9360/9360), done.
(base) C:>cd InvokeAI
(base) C:\InvokeAI>conda env create
CondaValueError: prefix already exists: C:\Users\thepe\anaconda3\envs\invokeai
(base) C:\InvokeAI>
@KnobleSavage Did you already have invokeai setup before you tried install.bat
?
Otherwise, you can clear the previously failed invokeai environment by opening the anaconda prompt and running conda env remove --name invokeai
You can also delete the invokeAI folder that was created (containing the install.bat script).
Then please run the manual installation steps. A full installation log would be helpful, thanks! :)
@cmdr2 Yes, I have an existing install. This reminds me of an important detail that I captured, but failed to share. During the preflite checklist, I ran into this issue:
(base) C:\InvokeAI>conda rename -n invokeai -d invokeai_bak Dry run action: clone C:\Users\thepe\anaconda3\envs\invokeai,C:\Users\thepe\anaconda3\envs\invokeai_bak Dry run action: rm_rf C:\Users\thepe\anaconda3\envs\invokeai
(base) C:\InvokeAI>mv InvokeAI InvokeAI.bak 'mv' is not recognized as an internal or external command, operable program or batch file.
@cmdr2 One more thing... when you say you'ld like a full log, do you mean what's echoed to the screen, or is there a log file somewhere I should grab for you?
@cmdr2 Okay, last thing and I'll wait to hear back from you...
(base) C:\InvokeAI>remove --name invokeai 'remove' is not recognized as an internal or external command, operable program or batch file.
@KnobleSavage I think you missed the conda env
part before the remove
command.
But in any case, please don't run this any more. I've mentioned a different command in my latest message below. Thanks
@KnobleSavage Regarding the full log, yes the entire contents of the command prompt window, from the time it starts installing till the error (if any).
@KnobleSavage The basic issue is that the preflight steps didn't really clear the old environment. The instructions listed in the pre-flight steps probably need a few changes. They do a dry run (which doesn't change the system), and the mv
command is for Linux/Mac, not for Windows.
Please use conda rename -n invokeai invokeai_bak
. And then unzip the 1-click installer
in a different folder, and start from there.
If you encounter any errors, please attach a text file containing the entire contents of the command prompt window. Thanks!
@cmdr2 Okay, here's where we are, lengthy log to follow. I apologize for not being able to figure out how to attach this as separate file.
(base) C:\Users\thepe>conda rename -n invokeai invokeai_bak Source: C:\Users\thepe\anaconda3\envs\invokeai Destination: C:\Users\thepe\anaconda3\envs\invokeai_bak Packages: 53 Files: 0 Preparing transaction: done Verifying transaction: done Executing transaction: done
(base) C:\Users\thepe>
Microsoft Windows [Version 10.0.19045.2130] (c) Microsoft Corporation. All rights reserved.
C:\Users\thepe>cd\
C:>cd invokeai
C:\invokeAI>install "Installing InvokeAI.."
"Downloading micromamba from https://github.com/cmdr2/stable-diffusion-ui/releases/download/v1.1/micromamba.exe to C:\invokeAI\installer_files\mamba\micromamba.exe" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8028k 100 8028k 0 0 6372k 0 0:00:01 0:00:01 --:--:-- 11.0M Micromamba version: 0.26.0
__
__ ______ ___ ____ _____ ___ / /_ ____ _
/ / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
/ /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
/ .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
/_/
Empty environment created at prefix: C:\invokeAI\installer_files\env "Packages to install: conda"
__
__ ______ ___ ____ _____ ___ / /_ ____ _
/ / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
/ /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
/ .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
/_/
pkgs/r/win-64 742.8kB @ 1.6MB/s 0.5s pkgs/msys2/noarch 111.0 B @ 209.0 B/s 0.1s pkgs/main/noarch 817.3kB @ 1.4MB/s 0.6s pkgs/msys2/win-64 39.8kB @ 57.7kB/s 0.1s pkgs/r/noarch 1.3MB @ 1.3MB/s 0.5s pkgs/main/win-64 4.3MB @ 3.6MB/s 1.4s conda-forge/noarch 10.1MB @ 4.0MB/s 3.0s conda-forge/win-64 17.4MB @ 4.5MB/s 4.8s
Transaction
Prefix: C:\invokeAI\installer_files\env
Updating specs:
conda
Summary:
Install: 38 packages
Total download: 41MB
Transaction starting vc 14.8kB @ 75.0kB/s 0.2s ca-certificates 193.8kB @ 678.7kB/s 0.3s xz 217.8kB @ 689.8kB/s 0.3s bzip2 152.2kB @ 376.1kB/s 0.2s ucrt 1.3MB @ 2.7MB/s 0.5s vs2015_runtime 1.3MB @ 2.7MB/s 0.5s colorama 25.2kB @ 50.4kB/s 0.1s certifi 158.7kB @ 287.6kB/s 0.1s tqdm 83.5kB @ 148.5kB/s 0.1s pyopenssl 125.0kB @ 177.6kB/s 0.1s pip 1.6MB @ 2.1MB/s 0.4s conda-package-handling 764.4kB @ 963.5kB/s 0.2s ruamel_yaml 278.3kB @ 347.7kB/s 0.3s libzlib 71.2kB @ 81.2kB/s 0.1s yaml 63.3kB @ 69.0kB/s 0.1s conda 1.0MB @ 1.1MB/s 0.2s charset-normalizer 36.5kB @ 37.5kB/s 0.1s pysocks 19.3kB @ 19.4kB/s 0.1s pycosat 101.3kB @ 98.3kB/s 0.1s brotlipy 339.9kB @ 320.2kB/s 0.1s libffi 42.1kB @ 37.5kB/s 0.1s pycparser 102.7kB @ 87.5kB/s 0.1s toolz 49.1kB @ 39.1kB/s 0.1s setuptools 786.8kB @ 585.3kB/s 0.5s menuinst 100.1kB @ 74.0kB/s 0.2s requests 54.6kB @ 38.6kB/s 0.2s idna 56.7kB @ 38.1kB/s 0.1s tzdata 121.2kB @ 79.1kB/s 0.2s python_abi 4.5kB @ 2.6kB/s 0.2s cryptography 1.2MB @ 648.9kB/s 0.4s libsqlite 657.8kB @ 362.5kB/s 0.3s cffi 236.4kB @ 123.1kB/s 0.1s win_inet_pton 8.2kB @ 4.2kB/s 0.2s tk 3.7MB @ 1.9MB/s 1.0s urllib3 104.1kB @ 51.1kB/s 0.1s wheel 32.0kB @ 15.5kB/s 0.1s python 17.3MB @ 6.1MB/s 2.5s openssl 8.2MB @ 2.2MB/s 2.1s Linking ucrt-10.0.22621.0-h57928b3_0 Linking ca-certificates-2022.9.24-h5b45459_0 Linking vs2015_runtime-14.32.31332-h1d6e394_9 Linking vc-14.3-h3d8a991_9 Linking xz-5.2.6-h8d14728_0 Linking tk-8.6.12-h8ffe710_0 Linking openssl-3.0.5-hcfcfb64_2 Linking libzlib-1.2.13-hcfcfb64_4 Linking libsqlite-3.39.4-hcfcfb64_0 Linking libffi-3.4.2-h8ffe710_5 Linking bzip2-1.0.8-h8ffe710_4 Linking yaml-0.2.5-h8ffe710_2 Linking tzdata-2022f-h191b570_0 Linking python-3.10.6-hcf16a7b_0_cpython Linking wheel-0.37.1-pyhd8ed1ab_0 Linking setuptools-65.5.0-pyhd8ed1ab_0 Linking pip-22.3-pyhd8ed1ab_0 Linking pycparser-2.21-pyhd8ed1ab_0 Linking win_inet_pton-1.1.0-pyhd8ed1ab_6 Linking colorama-0.4.6-pyhd8ed1ab_0 Linking charset-normalizer-2.1.1-pyhd8ed1ab_0 Linking idna-3.4-pyhd8ed1ab_0 Linking certifi-2022.9.24-pyhd8ed1ab_0 Linking toolz-0.12.0-pyhd8ed1ab_0 Linking pysocks-1.7.1-pyh0701188_6 Linking tqdm-4.64.1-pyhd8ed1ab_0 Linking python_abi-3.10-2_cp310 Linking cffi-1.15.1-py310h628cb3f_2 Linking ruamel_yaml-0.15.80-py310h8d17308_1008 Linking pycosat-0.6.4-py310h8d17308_1 Linking menuinst-1.4.19-py310h5588dad_1 Linking conda-package-handling-1.9.0-py310h635b8f1_1 Linking cryptography-38.0.2-py310h6e82f81_2 Linking brotlipy-0.7.0-py310h8d17308_1005 Linking pyopenssl-22.1.0-pyhd8ed1ab_0 Linking urllib3-1.26.11-pyhd8ed1ab_0 Linking requests-2.28.1-pyhd8ed1ab_1 Linking conda-22.9.0-py310h5588dad_1 Transaction finished Initialized empty Git repository in C:/invokeAI/.git/ remote: Enumerating objects: 14318, done. remote: Counting objects: 100% (1983/1983), done. remote: Compressing objects: 100% (721/721), done. remote: Total 14318 (delta 1344), reused 1801 (delta 1255), pack-reused 12335 Receiving objects: 100% (14318/14318), 122.35 MiB | 12.56 MiB/s, done.
Resolving deltas: 100% (9442/9442), done. From https://github.com/invoke-ai/InvokeAI
Downloading and Extracting Packages pip-20.3.3 | 1.8 MB | ############################################################################ | 100% libtiff-4.4.0 | 773 KB | ############################################################################ | 100% mkl-2021.4.0 | 114.9 MB | ############################################################################ | 100% pyopenssl-22.0.0 | 50 KB | ############################################################################ | 100% intel-openmp-2021.4. | 2.2 MB | ############################################################################ | 100% blas-1.0 | 6 KB | ############################################################################ | 100% idna-3.4 | 93 KB | ############################################################################ | 100% python-3.9.13 | 17.1 MB | ############################################################################ | 100% brotlipy-0.7.0 | 411 KB | ############################################################################ | 100% cudatoolkit-11.3.1 | 545.3 MB | ############################################################################ | 100% libdeflate-1.8 | 46 KB | ############################################################################ | 100% numpy-1.19.2 | 10 KB | ############################################################################ | 100% zlib-1.2.13 | 113 KB | ############################################################################ | 100% charset-normalizer-2 | 35 KB | ############################################################################ | 100% win_inet_pton-1.1.0 | 35 KB | ############################################################################ | 100% libwebp-1.2.4 | 67 KB | ############################################################################ | 100% jpeg-9e | 292 KB | ############################################################################ | 100% cffi-1.15.1 | 218 KB | ############################################################################ | 100% numpy-base-1.19.2 | 3.8 MB | ############################################################################ | 100% pysocks-1.7.1 | 55 KB | ############################################################################ | 100% wincertstore-0.2 | 15 KB | ############################################################################ | 100% xz-5.2.6 | 240 KB | ############################################################################ | 100% icc_rt-2022.1.0 | 6.5 MB | ############################################################################ | 100% libpng-1.6.37 | 333 KB | ############################################################################ | 100% certifi-2022.9.24 | 154 KB | ############################################################################ | 100% tk-8.6.12 | 3.1 MB | ############################################################################ | 100% libuv-1.40.0 | 255 KB | ############################################################################ | 100% cryptography-38.0.1 | 991 KB | ############################################################################ | 100% vc-14.2 | 8 KB | ############################################################################ | 100% pillow-9.2.0 | 908 KB | ############################################################################ | 100% torchvision-0.12.0 | 9.1 MB | ############################################################################ | 100% ca-certificates-2022 | 125 KB | ############################################################################ | 100% mkl_random-1.2.2 | 225 KB | ############################################################################ | 100% lz4-c-1.9.3 | 132 KB | ############################################################################ | 100% mkl_fft-1.3.1 | 139 KB | ############################################################################ | 100% tzdata-2022e | 107 KB | ############################################################################ | 100% pytorch-1.11.0 | 1.23 GB | ############################################################################ | 100% freetype-2.12.1 | 490 KB | ############################################################################ | 100% urllib3-1.26.12 | 185 KB | ############################################################################ | 100% pytorch-mutex-1.0 | 3 KB | ############################################################################ | 100% setuptools-65.5.0 | 1.1 MB | ############################################################################ | 100% six-1.16.0 | 18 KB | ############################################################################ | 100% sqlite-3.39.3 | 804 KB | ############################################################################ | 100% openssl-1.1.1q | 4.8 MB | ############################################################################ | 100% zstd-1.5.2 | 509 KB | ############################################################################ | 100% pycparser-2.21 | 94 KB | ############################################################################ | 100% typing_extensions-4. | 42 KB | ############################################################################ | 100% requests-2.28.1 | 99 KB | ############################################################################ | 100% lerc-3.0 | 120 KB | ############################################################################ | 100% mkl-service-2.4.0 | 51 KB | ############################################################################ | 100% vs2015_runtime-14.27 | 1007 KB | ############################################################################ | 100% wheel-0.37.1 | 33 KB | ############################################################################ | 100% libwebp-base-1.2.4 | 279 KB | ############################################################################ | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Installing pip dependencies: - Ran pip subprocess with arguments: ['C:\invokeAI\installer_files\env\envs\invokeai\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\invokeAI\condaenv.6ncbx5ld.requirements.txt'] Pip subprocess output: Requirement already satisfied: pillow==9.2.0 in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 12)) (9.2.0) Obtaining clip from git+https://github.com/openai/CLIP.git@main#egg=clip (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 25)) Cloning https://github.com/openai/CLIP.git (to revision main) to c:\invokeai\src\clip Obtaining taming-transformers from git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 26)) Cloning https://github.com/CompVis/taming-transformers.git (to revision master) to c:\invokeai\src\taming-transformers Obtaining k_diffusion from git+https://github.com/Birch-san/k-diffusion.git@mps#egg=k_diffusion (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 27)) Cloning https://github.com/Birch-san/k-diffusion.git (to revision mps) to c:\invokeai\src\k-diffusion Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Obtaining gfpgan from git+https://github.com/TencentARC/GFPGAN.git#egg=gfpgan (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 28)) Cloning https://github.com/TencentARC/GFPGAN.git to c:\invokeai\src\gfpgan Obtaining clipseg from git+https://github.com/invoke-ai/clipseg.git@models-rename#egg=clipseg (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 29)) Cloning https://github.com/invoke-ai/clipseg.git (to revision models-rename) to c:\invokeai\src\clipseg Obtaining file:///C:/invokeAI (from -r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 30)) Requirement already satisfied: torch in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from clip->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 25)) (1.11.0) Requirement already satisfied: torchvision in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from clip->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 25)) (0.12.0) Requirement already satisfied: numpy in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from clipseg->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 29)) (1.19.2) Collecting albumentations==0.4.3 Using cached albumentations-0.4.3.tar.gz (3.2 MB) Collecting dependency_injector==4.40.0 Using cached dependency_injector-4.40.0-cp39-cp39-win_amd64.whl (556 kB) Requirement already satisfied: six<=1.16.0,>=1.7.0 in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from dependency_injector==4.40.0->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 22)) (1.16.0) Collecting diffusers==0.6.0 Using cached diffusers-0.6.0-py3-none-any.whl (255 kB) Requirement already satisfied: requests in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from diffusers==0.6.0->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 17)) (2.28.1) Collecting einops==0.3.0 Using cached einops-0.3.0-py2.py3-none-any.whl (25 kB) Collecting flask==2.1.3 Using cached Flask-2.1.3-py3-none-any.whl (95 kB) Collecting flask_cors==3.0.10 Using cached Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB) Collecting flask_socketio==5.3.0 Using cached Flask_SocketIO-5.3.0-py3-none-any.whl (17 kB) Collecting imageio==2.9.0 Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB) Collecting imageio-ffmpeg==0.4.2 Using cached imageio_ffmpeg-0.4.2-py3-none-win_amd64.whl (22.6 MB) Collecting kornia==0.6.0 Using cached kornia-0.6.0-py2.py3-none-any.whl (367 kB) Collecting omegaconf==2.1.1 Using cached omegaconf-2.1.1-py3-none-any.whl (74 kB) Collecting opencv-python==4.5.5.64 Using cached opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB) Collecting pudb==2019.2 Using cached pudb-2019.2.tar.gz (59 kB) Collecting pytorch-lightning==1.7.7 Using cached pytorch_lightning-1.7.7-py3-none-any.whl (708 kB) Requirement already satisfied: typing-extensions>=4.0.0 in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from pytorch-lightning==1.7.7->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 6)) (4.3.0) Collecting realesrgan==0.2.5.0 Using cached realesrgan-0.2.5.0-py3-none-any.whl (25 kB) Collecting send2trash==1.8.0 Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB) Collecting streamlit==1.12.0 Using cached streamlit-1.12.0-py2.py3-none-any.whl (9.1 MB) Collecting torch-fidelity==0.3.0 Using cached torch_fidelity-0.3.0-py3-none-any.whl (37 kB) Collecting torchmetrics==0.7.0 Using cached torchmetrics-0.7.0-py3-none-any.whl (396 kB) Collecting transformers==4.21.3 Using cached transformers-4.21.3-py3-none-any.whl (4.7 MB) Collecting antlr4-python3-runtime==4.8 Using cached antlr4-python3-runtime-4.8.tar.gz (112 kB) Collecting pyDeprecate>=0.3.1 Using cached pyDeprecate-0.3.2-py3-none-any.whl (10 kB) Collecting test-tube>=0.7.5 Using cached test_tube-0.7.5.tar.gz (21 kB) Collecting altair>=3.2.0 Using cached altair-4.2.0-py3-none-any.whl (812 kB) Collecting basicsr>=1.4.2 Using cached basicsr-1.4.2.tar.gz (172 kB) Collecting blinker>=1.0.0 Using cached blinker-1.5-py2.py3-none-any.whl (12 kB) Collecting cachetools>=4.0 Using cached cachetools-5.2.0-py3-none-any.whl (9.3 kB) Collecting click>=8.0 Using cached click-8.1.3-py3-none-any.whl (96 kB) Collecting facexlib>=0.2.5 Using cached facexlib-0.2.5-py3-none-any.whl (59 kB) Collecting fsspec[http]!=2021.06.0,>=2021.05.0 Using cached fsspec-2022.10.0-py3-none-any.whl (138 kB) Collecting aiohttp!=4.0.0a0,!=4.0.0a1 Using cached aiohttp-3.8.3-cp39-cp39-win_amd64.whl (323 kB) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\invokeai\installer_files\env\envs\invokeai\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]!=2021.06.0,>=2021.05.0->pytorch-lightning==1.7.7->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 6)) (2.0.4) Collecting aiosignal>=1.1.2 Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting async-timeout<5.0,>=4.0.0a3 Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting attrs>=17.3.0 Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB) Collecting frozenlist>=1.1.1 Using cached frozenlist-1.3.1-cp39-cp39-win_amd64.whl (34 kB) Collecting gitpython!=3.1.19 Using cached GitPython-3.1.29-py3-none-any.whl (182 kB) Collecting gitdb<5,>=4.0.1 Using cached gitdb-4.0.9-py3-none-any.whl (63 kB) Collecting huggingface-hub>=0.10.0 Using cached huggingface_hub-0.10.1-py3-none-any.whl (163 kB) Collecting imgaug<0.2.7,>=0.2.5 Using cached imgaug-0.2.6.tar.gz (631 kB) Collecting importlib-metadata Using cached importlib_metadata-5.0.0-py3-none-any.whl (21 kB) Collecting itsdangerous>=2.0 Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB) Collecting Jinja2>=3.0 Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB) Collecting jsonschema>=3.0 Using cached jsonschema-4.16.0-py3-none-any.whl (83 kB) Collecting MarkupSafe>=2.0 Using cached MarkupSafe-2.1.1-cp39-cp39-win_amd64.whl (17 kB) Collecting multidict<7.0,>=4.5 Using cached multidict-6.0.2-cp39-cp39-win_amd64.whl (28 kB) Collecting numpy Downloading numpy-1.23.4-cp39-cp39-win_amd64.whl (14.7 MB) Collecting opencv-python-headless>=4.1.1 Using cached opencv_python_headless-4.6.0.66-cp36-abi3-win_amd64.whl (35.5 MB) Collecting packaging Using cached packaging-21.3-py3-none-any.whl (40 kB) Collecting pandas>=0.21.0 Downloading pandas-1.5.1-cp39-cp39-win_amd64.whl (10.9 MB) Collecting protobuf<4,>=3.12 Downloading protobuf-3.20.3-cp39-cp39-win_amd64.whl (904 kB) Collecting pyarrow>=4.0 Downloading pyarrow-10.0.0-cp39-cp39-win_amd64.whl (20.0 MB) \ Pip subprocess error: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. pyarrow>=4.0 from https://files.pythonhosted.org/packages/01/69/48421b3e41741b73b750d4db0c07dc950424c40f79c7b74892d2b5de4e58/pyarrow-10.0.0-cp39-cp39-win_amd64.whl#sha256=d45a59e2f47826544c0ca70bc0f7ed8ffa5ad23f93b0458230c7e983bcad1acf (from streamlit==1.12.0->-r C:\invokeAI\condaenv.6ncbx5ld.requirements.txt (line 10)): Expected sha256 d45a59e2f47826544c0ca70bc0f7ed8ffa5ad23f93b0458230c7e983bcad1acf Got db4c53465f95e64a2e70c52ab3d859e68c24dd1160a8180edecc2abf08a1a0fa
failed
CondaEnvException: Pip failed
Traceback (most recent call last):
File "C:\invokeAI\scripts\preload_models.py", line 14, in
"You can now start generating images by double-clicking the 'invoke.bat' file (inside this folder) Press any key to continue . . .
(invokeai) C:\invokeAI>invoke Do you want to generate images using the
(invokeai) C:\invokeAI>
@cmdr2 Went away for a couple days of vacation. Came home and pulled updates, and now even my older version is broken... Currently I can't get any version to run. Can you offer me any hope at all?
@KnobleSavage I'd suggest deleting the invoke-ai folder, and installing it manually from https://invoke-ai.github.io/InvokeAI/installation/INSTALL_WINDOWS/#conda
Hi @KnobleSavage, sorry you have had such a rough time with installation. We have continued to iterate on the installer situation and with the upcoming v2.2 release, should provide a much smoother install process. If you are still trying to get things running, please check in a few days to try v2.2.
@psychedelicious I'm pretty frustrated. As a very early adopter... back when it was lstein, I've really loved this implementation. But it all came crashing down with that one git pull. Repeated uninstall/reinstall all led to one difficulty or another, so I finally gave up and installed automatic1111, which is running fine.
I thought I would give the new "wonder bat" a try, so I cleared out everything "invoke" related that I could find, and let the new install bat do it's thing. Taking all the defaults except downloading the models (since I already have them). I manually moved them to the models folder.
Tried running it both using the command that's given, and the old "anaconda" way, with these results:
@KnobleSavage
Sorry you are having so many problems.
In your screenshot you are using the ldm
conda environment. If you just did a fresh install, you need to use invokeai
for your conda environment. Using ldm
is referencing the old env.
This was changed because ldm
is a generic name and conda env names should be fairly unique.
PS: If you double check the installation success message it does say to activate invokeai
.
@psychedelicious It doesn't seem to matter.
@psychedelicious Just out of curiosity, if you're no longer using LDM, why does invoke.py still reference it. Here's my entire newly installed invoke.py script after running the newly downloaded install. I should also point out, that I completely deleted my old invokeAI folder (and emptied my recycle bin) prior to running the new install.bat.
import ldm.invoke.CLI ldm.invoke.CLI.main()
@KnobleSavage
invoke.bat
file to start the app. This does a bit of additional setup.ldm
is an abbreviation for latent diffusion model
. Stable Diffusion is one of any number of LDMs. Internally, we group the python code into modules, and a major one is the ldm
module. The conda environment name ldm
or invokeai
is a label for the specific virtual environment used by InvokeAI. IIRC, ldm
was the name of the environment used by the original CompViz SD implementation and it was used by us initially only because the original implementation used it. Other projects which implement a LDM may choose to use that as their environment name, so we changed it so that we do not cause conflicts with existing conda environments. @psychedelicious
C:>cd invokeai
C:\InvokeAI>invoke.bat Do you want to generate images using the
Initialization file C:\Users\thepe/.invokeai found. Loading... InvokeAI runtime directory is "C:\InvokeAI\modelsconf" Patchmatch initialized GFPGAN Initialized CodeFormer Initialized ESRGAN Initialized
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You appear to have a missing or misconfigured model file(s). The script will now exit and run configure_invokeai.py to help fix the problem. After reconfiguration is done, please relaunch invoke.py. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! configure_invokeai is launching....
Loading Python libraries...
Welcome to InvokeAI. This script will help download the Stable Diffusion weight files and other large models that are needed for text to image generation. At any point you may interrupt this program and resume later.
DOWNLOADING DIFFUSION WEIGHTS You can download and configure the weights files manually or let this script do it for you. Manual installation is described at:
https://github.com/invoke-ai/InvokeAI/blob/main/docs/installation/INSTALLING_MODELS.md
You may download the recommended models (about 10GB total), select a customized set, or completely skip this step.
Download kip this step? [r]: s
DOWNLOADING SUPPORT MODELS Installing bert tokenizer (ignore deprecation errors)... ...success Installing CLIP model (ignore deprecation errors)... Tokenizer... Text model... ...success Installing models from RealESRGAN... Installing RealESRGAN model file https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth......exists Installing GFPGAN models... Installing GFPGAN weights model file https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth......exists Installing GFPGAN weights model file https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth......exists Installing GFPGAN weights model file https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth......exists Installing CodeFormer model file... Installing CodeFormer model file https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth......exists Installing clipseg model for text-based masking......success Installing model for NSFW content detection... AutoFeatureExtractor... StableDiffusionSafetyChecker... ...success
Model Installation Successful You're all set! You may now launch InvokeAI using one of these two commands: Web version: python scripts/invoke.py --web (connect to http://localhost:9090) Command-line version: python scripts/invoke.py
If you installed manually, remember to activate the 'invokeai' environment before running invoke.py. If you installed using the automated installation script, execute "invoke.sh" (Linux/Mac) or "invoke.bat" (Windows) to start InvokeAI.
Have fun!
C:\InvokeAI>python scripts/invoke.py --web
Traceback (most recent call last):
File "C:\InvokeAI\scripts\invoke.py", line 3, in
Hi @KnobleSavage , sorry, I have had a very busy week and have not been online at all.
conda
. It uses a different kind of virtual environment.install.bat
and invoke.bat
. You should never be activating an environment or running a python script directly, unless you need to re-run the configure_invokeai.py
script for some reason. If you need to re-run it, you run invoke.bat
, then choose option 3, then run configure_invokeai.py
. ldm
are, as mentioned previously, unrelated to a conda
environment. They are a reference to the python module called ldm
that is used.It looks like you may have an existing .invokeai
file that has something incorrect in it.
The easiest fix is to just delete this file (C:\Users\[username]\.invokeai
is the default location - note the dot, you may need to enable hidden files to see it). Then re-run invoke.bat
and it will recreate it this config file. When prompted, you can drag your model folder onto the command prompt window to paste its path in.
@psychedelicious First, let me tell you how appreciative I am for your continued help. You have nothing to apologize for at all. I've been frustrated by this process but that's hardly your fault, and I have to feel that there is something weird/unique/nonstandard that's happened to muck up my enverionment, and it's almost certianly my fault. I'm just not sure what it is.
If you use the installer, you should normally only need to run two scripts: install.bat and invoke.bat.
I'm pretty sure, that's what I did.
You should never be activating an environment or running a python script directly,
Here's where I'm a bit confused, because everytime I run the invoke.bat, it ends with the following:
So it seems you're telling me to never run a script directly, but when I run the batch file you tell me to run (invoke.bat), it ends by telling me to run the scripts directly.... what am I missing?
So I renamed C:\Users[username].invokeai to xxx.xxx. It was a very small text file containing a few settings. I then re-reran invoke.bat, which, yet again, downloaded a bunch of stuff, and once again, ended by telling me to run the python scripts. (See the screenshot above). When I try to run those scripts, I get the following which seems to be complaining about ldm.
Please note, the script I'm attempting to run here is copied directly from the output of invoke.bat which tells me that's what I need to run.
@KnobleSavage Ah, the message telling you to run the scripts directly is incorrect. I've just opened a PR to fix this (#1935). The updated, and more correct messaging will be:
** Model Installation Successful **
You're all set!
If you installed using one of the automated installation scripts,
execute 'invoke.sh' (Linux/macOS) or 'invoke.bat' (Windows) to
start InvokeAI.
If you installed manually, activate the 'invokeai' environment
(e.g. 'conda activate invokeai'), then run one of the following
commands to start InvokeAI.
Web UI:
python scripts/invoke.py --web # (connect to http://localhost:9090)
Command-line interface:
python scripts/invoke.py
Have fun!
The must indeed be something funky going on with your setup! If you try invoke.bat
and it does the same thing (ask you to re-do the model download), can you please drag your .invokeai
file into this thread to upload it (or paste its contents)? Something in there is probably pointing to the wrong folder, causing it to always want to re-download everything - we will need to double check that the folder paths in there point to the right locations.
PS: The downloader may actually just be checking if the files exist - might not actually be downloading - but it still takes a few seconds to do this check, perhaps giving the impression that is actually downloading.
I don't think I had ever tried to run invoke.bat immediately after running invoke.bat. I think it's very likely that every time I tried to run this thing, after running invoke.bat, I was trying to run the scripts (as has been mentioned already), and when that never worked, went on to taking other actions.
When I run the web interface now... it works!... Strike that... it doesn't work... it merely loads. When I actually try to generate anything, I get the following:
Traceback (most recent call last): File "c:\invokeai\backend\invoke_ai_web_server.py", line 1116, in generate_images self.generate.prompt2image( File "c:\invokeai\ldm\generate.py", line 405, in prompt2image configure_model_padding(model, seamless, seamless_axes) File "c:\invokeai\ldm\invoke\seamless.py", line 15, in configure_model_padding for m in model.modules(): AttributeError: 'NoneType' object has no attribute 'modules'
When I run the command line interface, it explodes (see attachment cmderror.txt) Also attached is my .invokeai file (as requested), which I had to rename to get past the uploader.
Question: In the past, to pull updates, I simply did a git pull. Is that still the right way to get the latest version of invokeai?
Is there an existing issue for this?
OS
Windows
GPU
cuda
VRAM
No response
What happened?
Got the following running the install.bat file: (copied some before the error for context)
Collecting flask_cors==3.0.10 Downloading Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB) Collecting flask_socketio==5.3.0 Downloading Flask_SocketIO-5.3.0-py3-none-any.whl (17 kB) Collecting imageio==2.9.0 Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB) Collecting imageio-ffmpeg==0.4.2 Using cached imageio_ffmpeg-0.4.2-py3-none-win_amd64.whl (22.6 MB) Collecting kornia==0.6.0 Using cached kornia-0.6.0-py2.py3-none-any.whl (367 kB) Collecting omegaconf==2.1.1 Using cached omegaconf-2.1.1-py3-none-any.whl (74 kB) Collecting opencv-python==4.5.5.64 Downloading opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB)
Pip subprocess error: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. opencv-python==4.5.5.64 from https://files.pythonhosted.org/packages/48/c3/798bd7b8f78430f82ec0660b753106717e4e4bb8032ce56f77d8577cb24b/opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl#sha256=408d5332550287aa797fd06bef47b2dfed163c6787668cc82ef9123a9484b56a (from -r C:\invokeAI\condaenv.vep7t28g.requirements.txt (line 2)): Expected sha256 408d5332550287aa797fd06bef47b2dfed163c6787668cc82ef9123a9484b56a Got 9d63fa7d3cf6803a2e45851aa9402d6729c5680fe509f845531f3c6aa7059cca
failed
CondaEnvException: Pip failed
Loading Python libraries...
Traceback (most recent call last): File "C:\invokeAI\scripts\preload_models.py", line 11, in
import clip
ModuleNotFoundError: No module named 'clip'
"You can now start generating images by double-clicking the 'invoke.bat' file (inside this folder) Press any key to continue . . .
Screenshots
No response
Additional context
This occurred while runing the new install.bat
Contact Details
theperryclayton@gmail.com