Skip to content

Commit

Permalink
set validation annotation path env key
Browse files Browse the repository at this point in the history
  • Loading branch information
anandhu-eng authored Oct 18, 2024
1 parent 077b930 commit c9bbd2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/get-dataset-openimages/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def postprocess(i):
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_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 c9bbd2a

Please sign in to comment.