Skip to content

Commit

Permalink
Merge pull request #153 from anandhu-eng/sdxl_accuracy_fixes
Browse files Browse the repository at this point in the history
Fixes for retinanet - annotation path mismatch
  • Loading branch information
arjunsuresh authored Oct 18, 2024
2 parents 18cb6e0 + c9bbd2a commit eb764aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
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"
],
"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
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

0 comments on commit eb764aa

Please sign in to comment.