[bug]: Crash when everything loaded
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
8GB
What happened?
run invoke.bat Everything is fine Load over show"Enjoy fun" And Crashed... So fast i even cant get screenshot...I didnt see any error information...
Screenshots
No response
Additional context
No response
Contact Details
No response
Do you run invoke.bat by doubleclicking the file? If so, do the other way. In the File Explorer, click the folder name bar twice, type cmd in it and press enter. You will get a more permanent console that will not close when the application ends. In it, type .\invoke.bat and see the results.
Do you run
invoke.batby doubleclicking the file? If so, do the other way. In the File Explorer, click the folder name bar twice, typecmdin it and press enter. You will get a more permanent console that will not close when the application ends. In it, type.\invoke.batand see the results.
ah,this it. and it shows: ............ 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!
Therefore, I need to manually start AI with --web in instead of double clicking invoke. bat?
It seems that somehow your installation was not finished. Does doubliclick work now? Anyway, while you can start everything with python scripts/invoke.py --web, you need to activate the proper environment first. Every time. You don't want to do that, so try staying with invoke.bat
' python scripts/invoke.py --web ' Is not working , I must run this
cd "I:\SD2.0\invokeai\.venv\Scripts" .\activate python I:\SD2.0\invokeai.venv\Scripts\invoke.py --web (connect to http://localhost:9090)
And it shows
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ I:\SD2.0\invokeai.venv\lib\site-packages\ldm\invoke\CLI.py:91 in main │ │ │ │ 88 │ │ │ 89 │ # creating a Generate object: │ │ 90 │ try: │ │ ❱ 91 │ │ gen = Generate( │ │ 92 │ │ │ conf = opt.conf, │ │ 93 │ │ │ model = opt.model, │ │ 94 │ │ │ sampler_name = opt.sampler_name, │ │ │ │ I:\SD2.0\invokeai.venv\lib\site-packages\ldm\generate.py:159 in init │ │ │ │ 156 │ │ │ weights = None, │ │ 157 │ │ │ config = None, │ │ 158 │ ): │ │ ❱ 159 │ │ mconfig = OmegaConf.load(conf) │ │ 160 │ │ self.height = None │ │ 161 │ │ self.width = None │ │ 162 │ │ self.model_cache = None │ │ │ │ I:\SD2.0\invokeai.venv\lib\site-packages\omegaconf\omegaconf.py:189 in load │ │ │ │ 186 │ │ from .utils import get_yaml_loader │ │ 187 │ │ │ │ 188 │ │ if isinstance(file, (str, pathlib.Path)): │ │ ❱ 189 │ │ │ with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f: │ │ 190 │ │ │ │ obj = yaml.load(f, Loader=get_yaml_loader()) │ │ 191 │ │ elif getattr(file_, "read", None): │ │ 192 │ │ │ obj = yaml.load(file_, Loader=get_yaml_loader()) │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Naught\invokeai\configs\models.yaml'
During handling of the above exception, another exception occurred:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ I:\SD2.0\invokeai.venv\Scripts\invoke.py:4 in
but why? I install it in I:\SD2.0\invokeai\ ,But it still try read "'C:\Users\Naught\invokeai\configs\models.yaml'"?
I try reinstall it twice,but always have this problem. Redownload all model aroud 10G+ is painful...
There are two directories. One, where the code is being installed. Mine, for example, is C:\Software\invokeai-man. It contains invoke.bat and the code. However, a modern application should assume that it is not allowed to write into a folder where it was installed into. So, there is a second folder, %USER_PROFILE%\invokeai, where it stores models, configs and produced images.
This is probably the same with all other apps you have installed into Program Files. Did you know that apps may not write into Program Files after installation?
As you say you need to redownload 10G+ every time, I make a guess that you somehow mixed those 2 folders into one? This won't do.
There are two directories. One, where the code is being installed. Mine, for example, is
C:\Software\invokeai-man. It contains invoke.bat and the code. However, a modern application should assume that it is not allowed to write into a folder where it was installed into. So, there is a second folder,%USER_PROFILE%\invokeai, where it stores models, configs and produced images.This is probably the same with all other apps you have installed into Program Files. Did you know that apps may not write into Program Files after installation?
As you say you need to redownload 10G+ every time, I make a guess that you somehow mixed those 2 folders into one? This won't do.
Can I install all the files to a specified directory? I don't want to continue consuming the capacity of my C drive?
When I was installing, the script actually asked me where to put the stuff. It only defaults to a user folder, but can be anywhere you can write into. Maybe you were pressing Enter too many times when installing? But don't mix the two folders together.
Lets do once again. [THIS] is the installation instructions. The only prerequisites are Python 3.10 (3.9 will do) and VC redistibutable 2015-2020 . I tested the installer on a clean new machine 3 times just today, it works.
There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.