Replies: 1 comment 4 replies
-
Hi, Thanks for providing the details.
It seems like you are splitting the video into segments which might indeed be useful but not in this implementation. The code processes stacks of 64 RGB frames (65 for the flow). It doesn't load the whole video into the memory – only these stacks. Therefore, your GPU should be able to digest at least 64 frames regardless of the video length. In my case, the feature extraction allocates 7.96 GB of memory for 64 frames. I am guessing your GPU doesn't have enough memory, hence, the error, and I am sorry if it is. You may try to adjust the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
--EDIT-- Running nvidia-smi I can see the GPU indeed running out of memory. Is there a way to free RAM when it's no longer needed? I'm understanding that the frames are all being loaded into the memory eventually
Hello,
I am running into a weird error while running i3d feature extraction. Here is the command:
python main.py \
--feature_type i3d \
--on_extraction save_numpy \
--device_ids 0
--extraction_fps 25
--video_paths ../../../tmp/a73fd64a-10ae-44f6-ae03-ea95f910833e_0.mp4
--output_path ../../../tmp
And here is the error:
CUDA out of memory. Tried to allocate 746.00 MiB (GPU 0; 7.79 GiB total capacity; 2.06 GiB already allocated; 687.19 MiB free; 1.63 GiB cached)
Extraction failed at: ../../../tmp/a73fd64a-10ae-44f6-ae03-ea95f910833e_0.mp4. Continuing extraction
So, there is two notes here:
1 - The math does not add up, 7.79 GB - 2.06 already allocated - 1.63 cached = way more than the 746 MB needed.
2 - And this is the weird part. As you can see, the name of the video ends with a _0, as it's a segment of an original video. For two of those segments, i3d works normally. For these same two, there is NO _frames folder under BMT/submodules/video_features/tmp. For every failed one there is.
Can you guys help me? Tell me if I'm being too vague
Thanks so much for your time
Antonio
Beta Was this translation helpful? Give feedback.
All reactions