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

Fixes for retinanet - annotation path mismatch #153

Merged
2 changes: 1 addition & 1 deletion script/app-mlperf-inference-nvidia/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def preprocess(i):
dataset_path = env['CM_DATASET_OPENIMAGES_PATH']
#return {'return': 1, 'error': 'error'}

annotations_path = env['CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH']
annotations_path = env['CM_DATASET_OPENIMAGES_ANNOTATIONS_DIR_PATH']
target_data_path_dir = os.path.join(env['MLPERF_SCRATCH_PATH'], 'data', 'open-images-v6-mlperf')
if not os.path.exists(target_data_path_dir):
cmds.append(f"mkdir -p {target_data_path_dir}")
Expand Down
2 changes: 1 addition & 1 deletion script/app-mlperf-inference/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ docker:
- "${{ CM_DATASET_IMAGENET_PATH }}:${{ CM_DATASET_IMAGENET_PATH }}"
- "${{ CM_DATASET_OPENIMAGES_PATH }}:${{ CM_DATASET_OPENIMAGES_PATH }}"
- "${{ CM_OPENIMAGES_CALIBRATION_DATASET_PATH }}:${{ CM_OPENIMAGES_CALIBRATION_DATASET_PATH }}"
- "${{ CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH }}:${{ CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH }}"
- "${{ CM_DATASET_OPENIMAGES_ANNOTATIONS_DIR_PATH }}:${{ CM_DATASET_OPENIMAGES_ANNOTATIONS_DIR_PATH }}"
- "${{ CM_MLPERF_INFERENCE_RESULTS_DIR }}:${{ CM_MLPERF_INFERENCE_RESULTS_DIR }}"
- "${{ OUTPUT_BASE_DIR }}:${{ OUTPUT_BASE_DIR }}"
- "${{ CM_MLPERF_INFERENCE_SUBMISSION_DIR }}:${{ CM_MLPERF_INFERENCE_SUBMISSION_DIR }}"
Expand Down
1 change: 1 addition & 0 deletions script/get-dataset-openimages/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"CM_CALIBRATION_DATASET_PATH",
"CM_CALIBRATION_DATASET_PATH_ROOT",
"CM_OPENIMAGES_CALIBRATION_DATASET_PATH",
"CM_DATASET_OPENIMAGES_ANNOTATIONS_DIR_PATH",
"CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH"

Choose a reason for hiding this comment

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

We can keep this too

Copy link
Author

Choose a reason for hiding this comment

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

Updated in 077b930.

],
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion script/get-dataset-openimages/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def postprocess(i):
env['CM_DATASET_PATH'] = os.path.join(os.getcwd(), 'install', 'validation', 'data')
annotations_file_path = os.path.join(env['CM_DATASET_ANNOTATIONS_DIR_PATH'], "openimages-mlperf.json")
env['CM_DATASET_VALIDATION_ANNOTATIONS_FILE_PATH'] = annotations_file_path
env['CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH'] = annotations_file_path

Choose a reason for hiding this comment

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

I think this is useful to have

Copy link
Author

Choose a reason for hiding this comment

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

Updated in c9bbd2a

env['CM_DATASET_ANNOTATIONS_FILE_PATH'] = annotations_file_path
env['CM_DATASET_OPENIMAGES_VALIDATION_ANNOTATIONS_FILE_PATH'] = annotations_file_path
if env.get("CM_DATASET_OPENIMAGES_CUSTOM_ANNOTATIONS",'') == "yes":
annotations_file_src = env['CM_DATASET_OPENIMAGES_ANNOTATIONS_FILE_PATH']
shutil.copy(annotations_file_src, env['CM_DATASET_ANNOTATIONS_DIR_PATH'])
Expand Down
Loading