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

Computation time for i3d features #120

Open
1980x opened this issue Feb 4, 2024 · 5 comments
Open

Computation time for i3d features #120

1980x opened this issue Feb 4, 2024 · 5 comments

Comments

@1980x
Copy link

1980x commented Feb 4, 2024

Hi. Thanks for awesome work.
I am not able to extract visual features in an efficient way. Its taking too much time even on GPUs. I am extracting visual features on 278 videos of 4-5 minutes duration by dividing into 16 parallel subsets simultaneously on 4GPUs of 24GB RAM. It has extracted features for only 60 videos in 24 hours. Can you suggest an efficient way for the same?

Thank you.

@v-iashin
Copy link
Owner

v-iashin commented Feb 4, 2024

Hi, sorry to hear about that.

Can you give me a bit more information?

Did you try to divide into 4 subsets (1 per GPU, instead of running 4? on one GPU)?

It is faster with streams=rgb?

Do you see your GPU being 100% utilized?

@1980x
Copy link
Author

1980x commented Feb 5, 2024

Yes. I also divided into 4 subsets running on each of the gpus along 4 more subsets on each gpu. And with this split gpu utilization was 100%.
Is it recommended to use multiple subsets per GPU to utilize the GPU memory?

I need both rgb and flow feature so did not try separately. Do you recommend this?

@1980x
Copy link
Author

1980x commented Feb 5, 2024

One more issue is that out of 16 parallel jobs submitted, it has computed features for first 4 jobs running one of each of 4 GPUs. Reaming 12 jobs, which were computing features, did not save the feature even though job was running full time. All jobs were writing the output features to same folder. It means if there is single GPU, I can't run multiple jobs to process more number of videos? Am I right? Can you suggest a solution as it is really taking lots of time.

@v-iashin
Copy link
Owner

v-iashin commented Feb 5, 2024

Try using one process per GPU. Did it improve speed?

@1980x
Copy link
Author

1980x commented Feb 5, 2024

Yes. it improves but still it is quite slow for untrimmed videos.

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