DFRamirez-USMC commited on
Commit
a40afea
1 Parent(s): ae80fcb

Update README.md

Browse files

"filepath" attribute does not exist for each example.
"filename" attribute should be "file_name".

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -93,7 +93,7 @@ PATH_TO_IMAGE_FOLDER = "COCO2017"
93
 
94
  def create_full_path(example):
95
  """Create full path to image using `base_path` to COCO2017 folder."""
96
- example["image_path"] = os.path.join(PATH_TO_IMAGE_FOLDER, example["filepath"], example["filename"])
97
  return example
98
 
99
  dataset = load_dataset("phiyodr/coco2017")
 
93
 
94
  def create_full_path(example):
95
  """Create full path to image using `base_path` to COCO2017 folder."""
96
+ example["image_path"] = os.path.join(PATH_TO_IMAGE_FOLDER, example["file_name"])
97
  return example
98
 
99
  dataset = load_dataset("phiyodr/coco2017")