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

Refactor detection pipeline test #693

Merged
merged 10 commits into from
Mar 27, 2019

Conversation

awolant
Copy link
Contributor

@awolant awolant commented Mar 25, 2019

Refactored detection pipeline test. Added more ops to it.

Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
ltrb=True,
random_shuffle=True)

self.decode_cpu = ops.HostDecoder(device="cpu", output_type=types.RGB)
Copy link
Contributor

Choose a reason for hiding this comment

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

do you need two decoders?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea of this test is to check different ways of doing the same thing against each other.

Copy link
Contributor

Choose a reason for hiding this comment

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

Theoretically we can go with CPU one and then transfer to the GPU for the GPU ops. But I agree with @awolant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to test corresponding ops on the same exact data, so this pipeline is rather not optimized.

if __name__ == "__main__":
parser = make_parser()
args = parser.parse_args()
args.batch_size = 1

Copy link
Contributor

Choose a reason for hiding this comment

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

are there any expected results in this test?

Copy link
Contributor Author

@awolant awolant Mar 25, 2019

Choose a reason for hiding this comment

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

If exit(1) is not called, that indicates success. I did not change that from previous version.

Copy link
Contributor

Choose a reason for hiding this comment

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

In case of crash non 0 value is returned as well, or am I wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it should be set to something other than 0

@awolant awolant requested a review from JanuszL March 25, 2019 14:58
@awolant awolant force-pushed the refactor_detection_pipeline_test branch from b26e21d to 12f2766 Compare March 26, 2019 08:23
Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant awolant force-pushed the refactor_detection_pipeline_test branch from 12f2766 to d784c0a Compare March 26, 2019 08:56
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant awolant requested a review from banasraf March 27, 2019 09:11
@awolant
Copy link
Contributor Author

awolant commented Mar 27, 2019

Build 686182

@awolant awolant merged commit 18871c1 into NVIDIA:master Mar 27, 2019
haoxintong pushed a commit to haoxintong/DALI that referenced this pull request Jul 16, 2019
Refactor of detection pipeline test. Added all operators from detection pipeline. Added tests against reference implementations for some of them.

Signed-off-by: Albert Wolant <awolant@nvidia.com>
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.

4 participants