Git Product home page Git Product logo

RuntimeError: CUDA out of memory. Tried to allocate 768.00 MiB (GPU 0; 6.00 GiB total capacity; 3.63 GiB already allocated; 328.06 MiB free; 3.90 GiB reserved in total by PyTorch) If r eserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF about medical-sam-adapter HOT 5 CLOSED

nanshanvv avatar nanshanvv commented on August 28, 2024
RuntimeError: CUDA out of memory. Tried to allocate 768.00 MiB (GPU 0; 6.00 GiB total capacity; 3.63 GiB already allocated; 328.06 MiB free; 3.90 GiB reserved in total by PyTorch) If r eserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

from medical-sam-adapter.

Comments (5)

nanshanvv avatar nanshanvv commented on August 28, 2024 2

Hi @nanshanvv have you solved this issue? Could you please share your solution? Thanks!

Hi, I solved this problem by buying cloud servers online to get more computing power.

from medical-sam-adapter.

WuJunde avatar WuJunde commented on August 28, 2024
  1. if 3D, decrease -chunk, -num_sample, and some other parameters I mentioned in README
  2. parameter pruning to fp32 or fp16. I have not implemented it, so you need to implement yourself. Luckily, there are many relevant sources on GitHub. I may update it in the future
  3. change a bigger GPU, 6GB memory is not enough for most DL projects now

from medical-sam-adapter.

nanshanvv avatar nanshanvv commented on August 28, 2024

Thank you for your reply

from medical-sam-adapter.

AmrinKareem avatar AmrinKareem commented on August 28, 2024

Hi @nanshanvv have you solved this issue? Could you please share your solution? Thanks!

from medical-sam-adapter.

Nimophilist avatar Nimophilist commented on August 28, 2024

Hi,Could you share what the configuration of GPU used is?

from medical-sam-adapter.

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.