Coder Social home page Coder Social logo

CUDA out of memory about autodistill-seggpt HOT 2 OPEN

alejoGT1202 avatar alejoGT1202 commented on September 1, 2024
CUDA out of memory

from autodistill-seggpt.

Comments (2)

nguyenthekhoig7 avatar nguyenthekhoig7 commented on September 1, 2024 1

I faced the same issue when running with just a extremely small dataset (7 images only), and it could not run on my decent 4GB vRAM GPU(I load the GroundedSAM model not SegGPT, but they all inherit from DetectionBaseModel, so same issue).

I read the code and seems that the way it works is that the code process all images into the RAM(in GPU in this case) at the same time to create a dataset, then the dataset will be saved, this exploded the memory.

If what I found was true, I'm gonna proceed to see if there is a way to process images in a serial way (or, in batches), in order to optimize memory usage for small GPU.

I appreciate any opinion and suggestion!

from autodistill-seggpt.

adbcode avatar adbcode commented on September 1, 2024

Facing similar issues with much lower GPU resources (1x NVIDIA L4).

I have much more labeled data (in 100s) and would like to use them all.

Any way to limit the VRAM usage?

from autodistill-seggpt.

Related Issues (5)

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.