RuntimeError: invalid stoi argument #8791
Replies: 2 comments 3 replies
-
Did you ever get this resolved (I imagine you did, this is from last year...) and if so could you share that? I've run into that exact error now. I had everything working perfectly well, but wanted to try some CUDA optimizations to help with memory management... and some weren't working... so then I found that the combination of pytorch + cuda present was a bit odd--but again, everything was working except the dreaded OOM errors when you try to do anything "big", which on a top-tier Nvidia card with a ton of VRAM, "big" should not be "hires fix on a batch of four 1024x2048 images." |
Beta Was this translation helpful? Give feedback.
-
Update for anyone who cares, and for "future me." A reinstall of CUDA software from here https://developer.nvidia.com/cuda-downloads has removed the "invalid stoi" argument. I'd spent quite a bit of time looking for what that string to integer problem was. Still don't know. Same Nvidia code that had worked previously, stopped and now after reinstall it does not throw that error. But...
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I can't get stable diffusion to start and I always get this error. I've tried everything and I don't know what else to do!
`invalid stoi argument: str
Traceback (most recent call last):
File "C:\Users\RayanPrivate\stable-diffusion-webui\modules\errors.py", line 41, in run
code()
File "C:\Users\RayanPrivate\stable-diffusion-webui\modules\devices.py", line 68, in enable_tf32
if any([torch.cuda.get_device_capability(devid) == (7, 5) for devid in range(0, torch.cuda.device_count())]):
File "C:\Users\RayanPrivate\stable-diffusion-webui\modules\devices.py", line 68, in
if any([torch.cuda.get_device_capability(devid) == (7, 5) for devid in range(0, torch.cuda.device_count())]):
File "C:\Users\RayanPrivate\stable-diffusion-webui\venv\lib\site-packages\torch\cuda_init_.py", line 357, in get_device_capability
prop = get_device_properties(device)
File "C:\Users\RayanPrivate\stable-diffusion-webui\venv\lib\site-packages\torch\cuda_init_.py", line 371, in get_device_properties
_lazy_init() # will define _get_device_properties
File "C:\Users\RayanPrivate\stable-diffusion-webui\venv\lib\site-packages\torch\cuda_init_.py", line 229, in _lazy_init
torch._C._cuda_init()
RuntimeError: invalid stoi argument`
Beta Was this translation helpful? Give feedback.
All reactions