Update STANFORD-CARS-TYPES.py
Browse files- STANFORD-CARS-TYPES.py +10 -4
STANFORD-CARS-TYPES.py
CHANGED
@@ -15,7 +15,7 @@ _DESCRIPTION = """\
|
|
15 |
TODO
|
16 |
"""
|
17 |
|
18 |
-
_URL = "
|
19 |
|
20 |
@dataclass
|
21 |
class CustomConfig(datasets.BuilderConfig):
|
@@ -27,13 +27,13 @@ class CustomConfig(datasets.BuilderConfig):
|
|
27 |
|
28 |
class STANFORDCARSTYPES(datasets.GeneratorBasedBuilder):
|
29 |
|
30 |
-
VERSION = datasets.Version("1.0.
|
31 |
|
32 |
BUILDER_CONFIGS = [
|
33 |
CustomConfig(
|
34 |
name="default",
|
35 |
version=VERSION,
|
36 |
-
description="
|
37 |
schema="default",
|
38 |
subset_id="default",
|
39 |
),
|
@@ -46,7 +46,7 @@ class STANFORDCARSTYPES(datasets.GeneratorBasedBuilder):
|
|
46 |
{
|
47 |
"image_file_path": datasets.Value("string"),
|
48 |
"image": datasets.Image(),
|
49 |
-
"labels": datasets.features.ClassLabel(names=[
|
50 |
}
|
51 |
),
|
52 |
supervised_keys=("image", "labels"),
|
@@ -66,6 +66,12 @@ class STANFORDCARSTYPES(datasets.GeneratorBasedBuilder):
|
|
66 |
"data_dir": os.path.join(data_dir, "train"),
|
67 |
},
|
68 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
datasets.SplitGenerator(
|
70 |
name=datasets.Split.TEST,
|
71 |
gen_kwargs={
|
|
|
15 |
TODO
|
16 |
"""
|
17 |
|
18 |
+
_URL = "XXX"
|
19 |
|
20 |
@dataclass
|
21 |
class CustomConfig(datasets.BuilderConfig):
|
|
|
27 |
|
28 |
class STANFORDCARSTYPES(datasets.GeneratorBasedBuilder):
|
29 |
|
30 |
+
VERSION = datasets.Version("1.0.0")
|
31 |
|
32 |
BUILDER_CONFIGS = [
|
33 |
CustomConfig(
|
34 |
name="default",
|
35 |
version=VERSION,
|
36 |
+
description="Skin Disease datasets.",
|
37 |
schema="default",
|
38 |
subset_id="default",
|
39 |
),
|
|
|
46 |
{
|
47 |
"image_file_path": datasets.Value("string"),
|
48 |
"image": datasets.Image(),
|
49 |
+
"labels": datasets.features.ClassLabel(names=["BA-cellulitis","BA-impetigo","FU-athlete-foot","FU-nail-fungus","FU-ringworm","PA-cutaneous-larva-migrans","VI-chickenpox","VI-shingles"]),
|
50 |
}
|
51 |
),
|
52 |
supervised_keys=("image", "labels"),
|
|
|
66 |
"data_dir": os.path.join(data_dir, "train"),
|
67 |
},
|
68 |
),
|
69 |
+
datasets.SplitGenerator(
|
70 |
+
name=datasets.Split.VALIDATION,
|
71 |
+
gen_kwargs={
|
72 |
+
"data_dir": os.path.join(data_dir, "validation"),
|
73 |
+
},
|
74 |
+
),
|
75 |
datasets.SplitGenerator(
|
76 |
name=datasets.Split.TEST,
|
77 |
gen_kwargs={
|