gjuggler commited on
Commit
34ff160
1 Parent(s): cce8028

Update repo URLs.

Browse files
Files changed (1) hide show
  1. bird-data.py +7 -3
bird-data.py CHANGED
@@ -24,11 +24,15 @@ quality dataset containing 48,562 images of North American birds with 55
24
  categories, part annotations and bounding boxes.
25
  """
26
 
 
 
27
  _URLS = {
28
- "train": "data/train.zip",
29
- "test": "data/test.zip",
30
  }
31
 
 
 
32
  class Beans(datasets.GeneratorBasedBuilder):
33
  """Beans plant leaf images dataset."""
34
 
@@ -39,7 +43,7 @@ class Beans(datasets.GeneratorBasedBuilder):
39
  {
40
  "image_file_path": datasets.Value("string"),
41
  "image": datasets.Image(),
42
- "labels": datasets.features.ClassLabel(names_file="classes.txt"),
43
  }
44
  ),
45
  supervised_keys=("image", "labels"),
 
24
  categories, part annotations and bounding boxes.
25
  """
26
 
27
+ _REPO = "https://huggingface.co/datasets/gjuggler/bird-data/resolve/main"
28
+
29
  _URLS = {
30
+ "train": f"{_REPO}/data/train.zip",
31
+ "test": f"{_REPO}/data/test.zip",
32
  }
33
 
34
+ _CLASSES_FILE = f"{_REPO}/classes.txt"
35
+
36
  class Beans(datasets.GeneratorBasedBuilder):
37
  """Beans plant leaf images dataset."""
38
 
 
43
  {
44
  "image_file_path": datasets.Value("string"),
45
  "image": datasets.Image(),
46
+ "labels": datasets.features.ClassLabel(names_file=_CLASSES_FILE),
47
  }
48
  ),
49
  supervised_keys=("image", "labels"),