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

Support loading url video in demo #165

Merged
merged 5 commits into from
Sep 8, 2020
Merged

Conversation

dreamerlin
Copy link
Collaborator

@dreamerlin dreamerlin commented Sep 6, 2020

This PR make OpenCVInit support to load a video in a url format, which is corresponding with the changes in mmcv

@dreamerlin dreamerlin mentioned this pull request Sep 6, 2020
@codecov
Copy link

codecov bot commented Sep 6, 2020

Codecov Report

Merging #165 into master will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
- Coverage   85.92%   85.89%   -0.03%     
==========================================
  Files          77       77              
  Lines        4845     4849       +4     
  Branches      765      765              
==========================================
+ Hits         4163     4165       +2     
- Misses        557      559       +2     
  Partials      125      125              
Flag Coverage Δ
#unittests 85.89% <66.66%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmaction/models/backbones/resnet_tin.py 19.85% <60.00%> (+0.91%) ⬆️
mmaction/apis/inference.py 81.81% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3073f3a...1388c4d. Read the comment docs.

@innerlee
Copy link
Contributor

innerlee commented Sep 6, 2020

add this to docs/docstring, and news/changelog

@@ -262,6 +291,8 @@ the param `video` should be `VIDEO.mp4` (`VIDEO_NAME`).

* When rawframes path is `VIDEO_NAME/img_xxxxx.jpg`, and `data_prefix` is None in the config file, the param `video` should be `VIDEO_NAME`.

* In the video url case, it is the same with that of giving a video file path.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also pass a url instead of a video file path.

@innerlee innerlee removed the need doc label Sep 8, 2020
@innerlee innerlee merged commit 285a44f into open-mmlab:master Sep 8, 2020
@dreamerlin dreamerlin deleted the web_video branch September 16, 2020 12:42
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

Successfully merging this pull request may close these issues.

2 participants