-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Features] Load optical flow data from bytes #1362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Last comment: the tests/data/sparse_flow.png is a little big, better to compress it to a size smaller than 100KB. |
Codecov Report
@@ Coverage Diff @@
## master #1362 +/- ##
==========================================
- Coverage 69.14% 69.07% -0.07%
==========================================
Files 162 162
Lines 10746 10776 +30
Branches 1978 1983 +5
==========================================
+ Hits 7430 7444 +14
- Misses 2927 2940 +13
- Partials 389 392 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Motivation
To support optical flow data loading from different storage platforms, I implement two functions to decode optical flow from bytes.
Modification
flow_from_bytes
andsparse_flow_from_bytes
functions inmmcv/video/optflow.py
mmcv/video/__init__.py
tests/test_video/test_optflow.py
BC-breaking (Optional)
no
Checklist
Before PR:
After PR: