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

[Enhance] Add MultiViewPipeline #748

Open
wants to merge 4 commits into
base: 1.0
Choose a base branch
from

Conversation

filaPro
Copy link
Contributor

@filaPro filaPro commented Jul 13, 2021

More discussion in #696#issuecomment-874275857.

It's WIP now as we also need a unit test and probably ScanNet + MultiViewPipeline test. Can I add 2-3 ScanNet .jpg images to tests/data for this purpose? сс @Tai-Wang

Also in case of ScanNet + MultiViewPipeline test this PR should be merged after #696.

@codecov
Copy link

codecov bot commented Jul 13, 2021

Codecov Report

Attention: Patch coverage is 86.11111% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 49.10%. Comparing base (da4c3af) to head (af31680).
Report is 340 commits behind head on 1.0.

Files Patch % Lines
mmdet3d/datasets/pipelines/loading.py 86.11% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              1.0     #748      +/-   ##
==========================================
+ Coverage   48.96%   49.10%   +0.14%     
==========================================
  Files         208      208              
  Lines       15880    15919      +39     
  Branches     2538     2546       +8     
==========================================
+ Hits         7775     7817      +42     
+ Misses       7603     7601       -2     
+ Partials      502      501       -1     
Flag Coverage Δ
unittests 49.10% <86.11%> (+0.14%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Tai-Wang
Copy link
Member

More discussion in #696#issuecomment-874275857.

It's WIP now as we also need a unit test and probably ScanNet + MultiViewPipeline test. Can I add 2-3 ScanNet .jpg images to tests/data for this purpose? сс @Tai-Wang

Also in case of ScanNet + MultiViewPipeline test this PR should be merged after #696.

Of course. Just add them if necessary and make them smaller.

@Wuziyi616 Wuziyi616 added the WIP label Jul 14, 2021
@filaPro
Copy link
Contributor Author

filaPro commented Jul 21, 2021

Hi, @Tai-Wang
I think the PR is fine. Can you please remove WIP and have a look?

@Tai-Wang Tai-Wang removed the WIP label Jul 21, 2021

@PIPELINES.register_module()
class MultiViewPipeline(object):
"""Load and transform multi-view images.
Copy link
Member

@Tai-Wang Tai-Wang Jul 21, 2021

Choose a reason for hiding this comment

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

If we will put Load into transforms, a comment is needed here or somewhere else, because it seems a little inconsistent with the name transforms itself. Or do you think is it will be better to move load out of the transform like MultiScaleFlipAug3D?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you suggesting to split my MultiViewPipeline to 2 separate classesMultiViewPipeline and LoadMultiViewImageFromFilesV2? Not sure that adding 2 new transforms is better then 1. But if you think it is better, I can do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also we can move to_float32, color_type, and file_client_args from LoadImageFromFile.__init__ to MultiViewPipeline.__init__ and remove LoadImageFromFile from MultiViewPipeline.transforms. However, it is not beautiful too.

I prefer to add a comment and assert about the necessity of LoadImageFromFile in MultiViewPipeline.transforms.

Copy link
Member

Choose a reason for hiding this comment

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

@ZwwWayne Please have a look at this function and see whether there is a conflict with your multi-modality models on nuScenes.

@Tai-Wang
Copy link
Member

Hi, @Tai-Wang
I think the PR is fine. Can you please remove WIP and have a look?

Great job! There is only something about design details that can be further discussed (see the comments).

@filaPro
Copy link
Contributor Author

filaPro commented Aug 4, 2021

@ZwwWayne can you please have a look here?

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.

3 participants