Giter Site home page Giter Site logo

CUDA out of memory issue about latent-nerf HOT 3 OPEN

eladrich avatar eladrich commented on July 23, 2024
CUDA out of memory issue

from latent-nerf.

Comments (3)

flow-specter avatar flow-specter commented on July 23, 2024

I have the same issue...

from latent-nerf.

qsong2001 avatar qsong2001 commented on July 23, 2024

if you met this issue:
RuntimeError: CUDA error: an illegal memory access was encountered

You can simply try to re-run the training script repeatedly (like 4,5 times) . It worked for me.

from latent-nerf.

SzaremehrjardiMT avatar SzaremehrjardiMT commented on July 23, 2024

Same issue on 4GB RAM.
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 4.00 GiB total capacity; 3.38 GiB already allocated; 0 bytes free; 3.42 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
I tried different solutions such as reducing batch size, using torch.no_grad() for Inference and loading models in float16 precision instead of the default float32 precision; But none of them worked for me.

What is the minimum hardware requirements?

from latent-nerf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.