Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use this method need the super memory? #12

Closed
JavanTang opened this issue Mar 22, 2020 · 6 comments
Closed

Use this method need the super memory? #12

JavanTang opened this issue Mar 22, 2020 · 6 comments

Comments

@JavanTang
Copy link

No description provided.

@JavanTang JavanTang changed the title Are need this method most yd Use this method need the super memory? Mar 22, 2020
@JavanTang
Copy link
Author

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)

@JavanTang
Copy link
Author

This question is my computer configuration or using way?

@lidq92
Copy link
Owner

lidq92 commented Mar 22, 2020

@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.

@JavanTang
Copy link
Author

@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?

@lidq92
Copy link
Owner

lidq92 commented Mar 23, 2020

@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.

@JavanTang
Copy link
Author

@lidq92 Ok, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants