andreped commited on
Commit
53863d3
·
1 Parent(s): 78d7c66

Update IBDColEpi.py

Browse files
Files changed (1) hide show
  1. IBDColEpi.py +5 -5
IBDColEpi.py CHANGED
@@ -54,8 +54,8 @@ _LICENSE = "MIT"
54
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
55
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
56
  base_path = "https://huggingface.co/datasets/andreped/IBDColEpi/resolve/main/"
57
- _URLS = {"part" + str(x): base_path + "WSI_part0" + str(x) + ".zip" for x in range(1, 10)}
58
- _URLS["part10"] = base_path + "WSI_part10.zip"
59
  _URLS["wsi-annotations"] = base_path + "TIFF-annotations.zip"
60
 
61
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
@@ -78,13 +78,13 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
78
  # data = datasets.load_dataset('my_dataset', 'first_domain')
79
  # data = datasets.load_dataset('my_dataset', 'second_domain')
80
  BUILDER_CONFIGS = [
81
- datasets.BuilderConfig(name="part" + str(x), version=datasets.Version("1.0.0"), description="This include part " + str(x) + "/10 of the WSIs in the dataset.") \
82
- for x in range(1, 11)
83
  ] + [
84
  datasets.BuilderConfig(name="wsi-annotations", version=datasets.Version("1.0.0"), description="This include all annotations stored as binary pyramidal, tiled TIFFs."),
85
  ]
86
 
87
- DEFAULT_CONFIG_NAME = "part1" # It's not mandatory to have a default configuration. Just use one if it make sense.
88
 
89
  def __init__(self, **kwargs):
90
  super().__init__(**kwargs)
 
54
  # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
55
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
56
  base_path = "https://huggingface.co/datasets/andreped/IBDColEpi/resolve/main/"
57
+ _URLS = {"part_0" + str(x): base_path + "WSI_part_0" + str(x) + ".zip" for x in range(1, 10)}
58
+ _URLS["part_10"] = base_path + "WSI_part_10.zip"
59
  _URLS["wsi-annotations"] = base_path + "TIFF-annotations.zip"
60
 
61
  # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
 
78
  # data = datasets.load_dataset('my_dataset', 'first_domain')
79
  # data = datasets.load_dataset('my_dataset', 'second_domain')
80
  BUILDER_CONFIGS = [
81
+ datasets.BuilderConfig(name="part_0" + str(x), version=datasets.Version("1.0.0"), description="This include part " + str(x) + "/10 of the WSIs in the dataset.") \
82
+ for x in range(1, 10)
83
  ] + [
84
  datasets.BuilderConfig(name="wsi-annotations", version=datasets.Version("1.0.0"), description="This include all annotations stored as binary pyramidal, tiled TIFFs."),
85
  ]
86
 
87
+ DEFAULT_CONFIG_NAME = "part_01" # It's not mandatory to have a default configuration. Just use one if it make sense.
88
 
89
  def __init__(self, **kwargs):
90
  super().__init__(**kwargs)