sc890 commited on
Commit
0c51fdd
1 Parent(s): ea0c9cc

Update deepfruit_dataset.py

Browse files
Files changed (1) hide show
  1. deepfruit_dataset.py +2 -2
deepfruit_dataset.py CHANGED
@@ -42,7 +42,7 @@ class DeepFruitDataset(datasets.GeneratorBasedBuilder):
42
  description=_DESCRIPTION,
43
  features= datasets.Features({
44
  "image_id": datasets.Value("string"),
45
- "number":datasets.Value("int32"),
46
  "image": datasets.Image(),
47
  "image_path": datasets.Value("string"),
48
  "label": datasets.Value("string"),
@@ -91,7 +91,7 @@ class DeepFruitDataset(datasets.GeneratorBasedBuilder):
91
  img = IMG.open(image_path)
92
  yield image_id, {
93
  "image_id": image_id,
94
- "number": number_dir,
95
  "image": img,
96
  "image_path": relative_image_path,
97
  "label": label_dict[image_file]
 
42
  description=_DESCRIPTION,
43
  features= datasets.Features({
44
  "image_id": datasets.Value("string"),
45
+ "folder_number":datasets.Value("int32"),
46
  "image": datasets.Image(),
47
  "image_path": datasets.Value("string"),
48
  "label": datasets.Value("string"),
 
91
  img = IMG.open(image_path)
92
  yield image_id, {
93
  "image_id": image_id,
94
+ "folder_number": number_dir,
95
  "image": img,
96
  "image_path": relative_image_path,
97
  "label": label_dict[image_file]