Git Product home page Git Product logo

Comments (6)

JavanTang avatar JavanTang commented on July 18, 2024

Input:
!python /content/VSFA/test_demo.py --video_path='/content/VSFA/ACMMM_2019_supplementary_44/video pair/better-MAH_02693_8s.mp4' --model_path=/content/VSFA/models/VSFA.pt
output:
RuntimeError: CUDA out of memory. Tried to allocate 3.96 GiB (GPU 0; 15.90 GiB total capacity; 9.73 GiB already allocated; 2.47 GiB free; 12.72 GiB reserved in total by PyTorch)

from vsfa.

JavanTang avatar JavanTang commented on July 18, 2024

This question is my computer configuration or using way?

from vsfa.

lidq92 avatar lidq92 commented on July 18, 2024

@JavanTang You should read the test_demo.py carefully.
Or at least you can run python test_demo.py --help to get more information.
Actually, you can set frame_batch_size to 16, then it only needs about 9G GPU memory.

The supplementary video pairs are just used for illustrating the motivation of this paper.
We provide the test_demo.py with the test.mp4 example (which has a smaller resolution than my supplementary video pairs, so it can be run with default frame_batch_size, 32).

To save GPU memory, a smaller frame_batch_size is preferred.

from vsfa.

JavanTang avatar JavanTang commented on July 18, 2024

@lidq92 Well. Video length increases, can increase memory? Try to test 32 seconds video on my side, but my memory more than 12 gb, is this normal?

from vsfa.

lidq92 avatar lidq92 commented on July 18, 2024

@JavanTang Read the test_demo.py, or at least I strongly suggest you run python test_demo.py --help to get more information.

It is obvious that the video spatial resolution has an effect on the GPU memory.
"It only needs about 9G GPU memory for a 1080P video with setting frame_batch_size=16.

from vsfa.

JavanTang avatar JavanTang commented on July 18, 2024

@lidq92 Ok, thank you

from vsfa.

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.