zhuchi76 commited on
Commit
e62282e
1 Parent(s): 6c5512c

Update script to hub

Browse files
Files changed (1) hide show
  1. Boat_dataset.py +4 -13
Boat_dataset.py CHANGED
@@ -9,7 +9,7 @@ import datasets
9
  _CITATION = """\
10
  @InProceedings{huggingface:dataset,
11
  title = {Boat dataset},
12
- author={Tzu-Chi Chen, Inc.},
13
  year={2024}
14
  }
15
  """
@@ -18,15 +18,14 @@ _DESCRIPTION = """\
18
  This dataset is designed to solve an object detection task with images of boats.
19
  """
20
 
21
- _HOMEPAGE = "https://huggingface.co/datasets/zhuchi76/Boat_dataset/resolve/main"
22
 
23
  _LICENSE = ""
24
 
25
  _URLS = {
26
  "classes": f"{_HOMEPAGE}/data/classes.txt",
27
- "train": f"{_HOMEPAGE}/data/instances_train2023.jsonl",
28
- "val": f"{_HOMEPAGE}/data/instances_val2023.jsonl",
29
- "test": f"{_HOMEPAGE}/data/instances_val2023r.jsonl"
30
  }
31
 
32
  class BoatDataset(datasets.GeneratorBasedBuilder):
@@ -84,14 +83,6 @@ class BoatDataset(datasets.GeneratorBasedBuilder):
84
  "split": "val",
85
  }
86
  ),
87
- datasets.SplitGenerator(
88
- name=datasets.Split.TEST,
89
- gen_kwargs={
90
- "annotations_file": downloaded_files["test"],
91
- "classes": classes,
92
- "split": "val_real",
93
- }
94
- ),
95
  ]
96
 
97
  def _generate_examples(self, annotations_file, classes, split):
 
9
  _CITATION = """\
10
  @InProceedings{huggingface:dataset,
11
  title = {Boat dataset},
12
+ author={XXX, Inc.},
13
  year={2024}
14
  }
15
  """
 
18
  This dataset is designed to solve an object detection task with images of boats.
19
  """
20
 
21
+ _HOMEPAGE = "https://huggingface.co/datasets/SIS-2024-spring/Boat_dataset/resolve/main"
22
 
23
  _LICENSE = ""
24
 
25
  _URLS = {
26
  "classes": f"{_HOMEPAGE}/data/classes.txt",
27
+ "train": f"{_HOMEPAGE}/data/instances_train2023r.jsonl",
28
+ "val": f"{_HOMEPAGE}/data/instances_val2023r.jsonl",
 
29
  }
30
 
31
  class BoatDataset(datasets.GeneratorBasedBuilder):
 
83
  "split": "val",
84
  }
85
  ),
 
 
 
 
 
 
 
 
86
  ]
87
 
88
  def _generate_examples(self, annotations_file, classes, split):