Giter Site home page Giter Site logo

Comments (2)

yangyi02 avatar yangyi02 commented on July 28, 2024

Thank you for the feedback. From what I saw for the causal tapir colab demo, the inference on 50 frames 20 points 256x256 resolution may take 5GB GPU memory. Note that this is only a valid number for this specific setting.

Screenshot 2023-06-18 at 8 49 54 PM

from tapnet.

cdoersch avatar cdoersch commented on July 28, 2024

It's not easy to give a single nuber because it depends heavily on what you're trying to do. The live demo (which runs on a 480x480 image runs fine on my 8GB M4000 even when I limit JAX to 0.05% of the memory via XLA_PYTHON_CLINENT_MEM_FRACTION=0.05 (which still somehow allocates 1GB of memory; there's probably another flag I need to tweak). But obviously, more points, larger frames, and longer videos processed in batch mode, you can easily end up with a tensor that takes the whole memory.

I agree that we should add a bit more info on memory usage, but JAX doesn't make it super easy as it tends to only be careful about freeing tensors when memory is limited, so we can't just look at overall usage. However, almost any discrete GPU (in fact, almost any GPU in general) should be able to run something (e.g. 1 frame at a time at 256x256), and even CPU mode is decently fast for small images.

from tapnet.

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.