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 rawframe inference in demo and polish scripts and docs #59

Merged
merged 5 commits into from
Jul 26, 2020

Conversation

dreamerlin
Copy link
Collaborator

@dreamerlin dreamerlin commented Jul 26, 2020

  • Support rawframe inference in demo
  • Raise Error when dataset type is not consist with the input type. (rawframe VS video)
  • Polish demo scripts and docs

@dreamerlin dreamerlin requested a review from innerlee July 26, 2020 10:13
@dreamerlin dreamerlin mentioned this pull request Jul 26, 2020
model = init_recognizer(config_file, checkpoint_file, device=device, use_frames=True)

# test rawframe directory of a single video and show the result:
video = 'SOME_DIR_PATH/'
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the structure of this dir, "SOME_DIR_PATH/video_name/img_xxxx.jpg" or "SOME_DIR_PATH/img_xxxx.jpg"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • When filename is "SOME_DIR_PATH/video_name/img_xxxx.jpg" and data_prefix is None in config file. video = SOME_DIR_PATH/video_name.
  • When filename is "SOME_DIR_PATH/video_name/img_xxxx.jpg" and data_prefix is "SOME_DIR_PATH" in config file. video = video_name.
  • When filename is "SOME_DIR_PATH/img_xxxx.jpg" and data_prefix is None in config file. video = SOME_DIR_PATH.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As a default, we set data_prefix=None in config file.

Copy link
Contributor

Choose a reason for hiding this comment

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

is this info clear to reader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add the description in a comment to make this info clear to readers.

@codecov
Copy link

codecov bot commented Jul 26, 2020

Codecov Report

Merging #59 into master will decrease coverage by 0.27%.
The diff coverage is 27.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
- Coverage   84.95%   84.67%   -0.28%     
==========================================
  Files          73       73              
  Lines        3874     3889      +15     
  Branches      627      632       +5     
==========================================
+ Hits         3291     3293       +2     
- Misses        482      490       +8     
- Partials      101      106       +5     
Flag Coverage Δ
#unittests 84.67% <27.77%> (-0.28%) ⬇️

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

Impacted Files Coverage Δ
mmaction/apis/inference.py 66.03% <27.77%> (-20.81%) ⬇️

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 27444cd...800f16a. Read the comment docs.

@@ -129,6 +129,9 @@ device = torch.device(device)
model = init_recognizer(config_file, checkpoint_file, device=device)

# test a single video and show the result:
# The real path for the video to get in this scripts will be `osp.path(data_prefix, video)`.
Copy link
Contributor

Choose a reason for hiding this comment

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

real path for the video is vague, because user is not sure what the video mean. does it mean the folder name of frames when using rawframe?
it will be good if you provide examples, rather than giving abstract description

@innerlee innerlee changed the title Support rawframe inference in demo and polish demo scripts and docs Support rawframe inference in demo and polish scripts and docs Jul 26, 2020
@innerlee innerlee merged commit 41e2732 into open-mmlab:master Jul 26, 2020
@dreamerlin dreamerlin deleted the demo branch July 26, 2020 13:49
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