miojizzy commited on
Commit
18c814d
·
1 Parent(s): 60ce46f

Update mhr_recognize_datasets.py

Browse files
Files changed (1) hide show
  1. mhr_recognize_datasets.py +2 -2
mhr_recognize_datasets.py CHANGED
@@ -79,8 +79,8 @@ class MHRRecognizeDatasets(datasets.GeneratorBasedBuilder):
79
  image_label = label_csv[label_csv["name"] == file_name]['label'].values[0]
80
  #print("4:", type(image_label), image_label)
81
  image_label = -1 if np.isnan(image_label) else image_label
82
- print("5:", type(image_label), image_label)
83
- #yield i, {
84
  "image": path,
85
  "label": image_label,
86
  }
 
79
  image_label = label_csv[label_csv["name"] == file_name]['label'].values[0]
80
  #print("4:", type(image_label), image_label)
81
  image_label = -1 if np.isnan(image_label) else image_label
82
+ #print("5:", type(image_label), image_label)
83
+ yield i, {
84
  "image": path,
85
  "label": image_label,
86
  }