InvokeAI
InvokeAI copied to clipboard
[bug]: "TypeError: expected str, bytes or os.PathLike object, not NoneType"
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
12GB
What happened?
After running update.bat, when I attempt to launch by running invoke.bat the above error is generated. Thinking my install was broken, I downloaded the src install again and get the same error when running install. This occurs after the 'Loading Python Libraries...' step
Screenshots
Additional context
Occurs when in both user and administrator level CMD
likely introduced by https://github.com/invoke-ai/InvokeAI/pull/1948
Possibly fixed by https://github.com/invoke-ai/InvokeAI/pull/1954. @Malbathla could you please retry the source install after pulling again from main
? (the installers aren't updated yet). Thank you!
@ebr (This issue relates to 2.2.3 btw) I did a git pull and the launcher (invoke.bat) ran (some minor errors but it didnt crash the launch) and I could access the webUI .. however when I attempt to generate anything from text prompt - regardless of sampler, the cmd windows is getting a LOT of errors eg Traceback (most recent call last): File "e:\ai\invokeai\ldm\generate.py", line 492, in prompt2image results = generator.generate( File "e:\ai\invokeai\ldm\invoke\generator\base.py", line 98, in generate image = make_image(x_T) File "E:\AI\invokeAI\installer_files\env\envs\invokeai\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "e:\ai\invokeai\ldm\invoke\generator\txt2img.py", line 42, in make_image samples, _ = sampler.sample( File "E:\AI\invokeAI\installer_files\env\envs\invokeai\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "e:\ai\invokeai\ldm\models\diffusion\ksampler.py", line 226, in sample K.sampling.dict[f'sample_{self.schedule}']( File "E:\AI\invokeAI\installer_files\env\envs\invokeai ... RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Could not generate image.
and of course no image generated.
My Card: NVidia GeForce RTX 3060.
I also noted there was a 2.2.4 install which I have also tried, and while that ran fine it also throws the same error when attempting to generate images from text prompt
UPDATE: Reran install.bat. (all good no error) then ran invoke.bat .. when I attempt to generate an image from text prompt - the first error thrown is ..
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [5,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [6,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [7,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [8,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [9,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [10,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [11,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [12,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
C:\cb\pytorch_1000000000000\work\aten\src\ATen\native\cuda\IndexKernel.cu:91: block: [14,0,0], thread: [13,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds"
failed.
This is then followed by the python script errors shown above .. these kernel/thread errors only occur once (first attempt) .. after this it is only the python errors each attempt to generate txt2img
Hope it helps
Night update
No webui, no one...
Update.bat now. All reinstalled, HUGIN token, model download, as first install... But all work.