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

Fix hw_decoder_load=0.0 for ImageDecoder related tests that require deterministic results #2232

Merged

Conversation

jantonguirao
Copy link
Contributor

Signed-off-by: Joaquin Anton janton@nvidia.com

Why we need this PR?

Pick one, remove the rest

  • It fixes a failing tests in A100, due to HW decoder producing slightly different image than the CUDA based decoder

What happened in this PR?

Fill relevant points, put NA otherwise. Replace anything inside []

  • What solution was applied:
    Fixed hw_decoder_load=0.0 in tests that compare the output of different versions of ImageDecoder.
  • Affected modules and functionalities:
    test_pipeline.py
  • Key points relevant for the review:
    All
  • Validation and testing:
    Modified tests
  • Documentation (including examples):
    N/A

JIRA TASK: [Use DALI-XXXX or NA]

@@ -657,7 +657,7 @@ def __init__(self, batch_size, num_threads, device_id, num_gpus):
num_threads,
device_id)
self.input = ops.CaffeReader(path = caffe_db_folder, shard_id = device_id, num_shards = num_gpus)
self.decode = ops.ImageDecoder(device = "mixed", output_type = types.RGB)
self.decode = ops.ImageDecoder(device = "mixed", output_type = types.RGB, hw_decoder_load = 0.0) # Fixing HW load to 0 to be able to compare with ImageDecoderCrop (which uses CUDA decoder only)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a minor comment: can those comments appear in separate lines to not make them so long?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

…eterministic results

Signed-off-by: Joaquin Anton <janton@nvidia.com>
@jantonguirao jantonguirao force-pushed the image_decoder_test_fix_hw_dec_load branch from 3b90921 to 6c3a633 Compare August 26, 2020 09:49
@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1573298]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1573298]: BUILD PASSED

@jantonguirao jantonguirao merged commit 3e2e0d3 into NVIDIA:master Aug 26, 2020
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.

None yet

6 participants