miojizzy commited on
Commit
cd4fafd
·
1 Parent(s): 777e093

Update mhr_recognize_datasets.py

Browse files
Files changed (1) hide show
  1. mhr_recognize_datasets.py +1 -1
mhr_recognize_datasets.py CHANGED
@@ -77,7 +77,7 @@ class MHRRecognizeDatasets(datasets.GeneratorBasedBuilder):
77
  print("3:", i, path, file_name)
78
  # Get image id to filter the respective row of the csv
79
  image_id = file_name
80
- image_labels = label_csv[label_csv["name"] == image_id].loc['label']
81
  print("4:", image_labels)
82
  yield i, {
83
  "image": path,
 
77
  print("3:", i, path, file_name)
78
  # Get image id to filter the respective row of the csv
79
  image_id = file_name
80
+ image_labels = label_csv[label_csv["name"] == image_id]['label'][0]
81
  print("4:", image_labels)
82
  yield i, {
83
  "image": path,