-
Notifications
You must be signed in to change notification settings - Fork 4
Multicore preprocessing solution for pytorch #45
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
Comments
Hi @johndpope From your description I got some overall understanding of what you are trying to achieve.
It does natively support:
|
i had a play with multithreading - on cpu - but to get images done - looks like can't get away from cpu. i think the problem is pilimage has never had gpu support.... i use the streamreader from torchvision - somewhat successful to cycle through frames.
i appreciate your timely response - i guess i continue down this streamer path for now. |
If you just want to get decoded video frames and run your inference on them as a first step, you may follow the code from torch segmentation test: VALI/tests/test_TorchSegmentation.py Line 178 in 820caea
It keeps everything on GPU. Yet there's a room for perf optimization which wasn't done because it's a unit test, not perf test. E. g. decode video frames in batches, not one by one. Anyway, it may be a good starting point. |
Hi. Please LMK if your issue is resolved. |
Hi @RomanArzumanyan - thanks - i circle back when i have more bandwidth. closing for now. processing a video with gpu - and then augmenting etc - it's very valuable - please consider adding some helper wrappers to allow working with the frames.
|
Closing the issue because last response was month ago. |
I’m looking at this framework from performance perspective- I want to use it to quickly preprocess videos en masse.
I am happy to help build a wrapper - I would need it to match record to make it easier to consume. I really want to achieve this though
johndpope/MegaPortrait-hack#38
To get best performance - I’m prepare to cut code in c++ to do this. Or is there other things that come to mind ?
Related - dmlc/decord#283
The text was updated successfully, but these errors were encountered: