Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(-1)

Hi! When I try to load the image I get this message:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 6.00 GiB total capacity; 4.34 GiB already allocated; 13.56 MiB free; 4.41 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

>> Could not generate image.

>> Usage stats:

>>   0 image(s) generated in 3.99s

>>   Max VRAM used for this generation: 4.66G. Current VRAM utilization: 4.66G

>>   Max VRAM used since script start:  4.66G


The image doesn't load and it stays grey :< Is there anything I can do? I have GeForce GTX 1660 Ti

Sounds like you're low on VRAM. :3 There are several things that you can try:

1) Close InvokeAI and check how much VRAM is already used up by the system in your task manager. Try to close stuff that you don't need and check if it lowers the VRAM usage.

2) Disable the NSFW checker, as it also needs some VRAM. You have to restart InvokeAI so the setting is applied.

3) Disable the in-progress preview, because it also needs VRAM. You can disable it in the tool on the cogwheel in the top right -> Display In-Progress Images -> None

4) There is a --free_gpu_mem option that will save VRAM. It will slow the generation a bit, though. To activate it, you have to open invokeai_2_3_0_standalone\invokeai\invokeai.init in a text editor and add the line after one of the upper rows. But I'd first check if the rest works. :3

(1 edit)

This can be (random) cause when you set image size out of range. Try setting the image size between these number (512, 768, 1024). When image size out of these number sometime it work, sometime it won't. Make the prompt longer also fix this problem. And finally if it doesn't fix, your VRAM might already full.