Commit
·
c0a8fa5
1
Parent(s):
7b4553b
Update LoadingScript
Browse files- LoadingScriptPractice.py +11 -27
LoadingScriptPractice.py
CHANGED
@@ -23,21 +23,15 @@ _DESCRIPTION = f"""\
|
|
23 |
Using for Project Learning...
|
24 |
"""
|
25 |
|
26 |
-
# URL
|
27 |
-
|
28 |
-
#
|
29 |
-
#
|
30 |
-
|
31 |
-
#
|
32 |
-
#
|
33 |
-
#
|
34 |
-
#
|
35 |
-
# matadata_urls: dictionary with keys 'train' and 'validation' containing the archive metadata URLs
|
36 |
-
# **kwargs: keyword arguments forwarded to super.
|
37 |
-
# """
|
38 |
-
# super(LoadingScriptPracticeConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
39 |
-
# self.data_url = data_url
|
40 |
-
# self.metadata_urls = metadata_urls
|
41 |
|
42 |
|
43 |
|
@@ -47,22 +41,12 @@ class LoadingScriptPractice(datasets.GeneratorBasedBuilder):
|
|
47 |
BUILDER_CONFIGS = [
|
48 |
datasets.BuilderConfig(
|
49 |
name="train",
|
50 |
-
description=
|
51 |
# data_url = train_data_url["train"][0],
|
52 |
# metadata_urls = {
|
53 |
# "train" : train_metadata_paths["train"][0]
|
54 |
# }
|
55 |
-
)
|
56 |
-
|
57 |
-
# splits (dict, optional) — The mapping between split name and metadata.
|
58 |
-
# datasets.BuilderConfig(
|
59 |
-
# name="test",
|
60 |
-
# description="this Datasets is personal practice for using loadingScript. Data is from Google/MusicCaps",
|
61 |
-
# # data_url = test_data_url["test"][0],
|
62 |
-
# # metadata_urls={
|
63 |
-
# # "test" : test_metadata_paths["test"][0]
|
64 |
-
# # }
|
65 |
-
# )
|
66 |
]
|
67 |
|
68 |
def _info(self) -> DatasetInfo:
|
|
|
23 |
Using for Project Learning...
|
24 |
"""
|
25 |
|
26 |
+
# 参考になりそうなURL集
|
27 |
+
# https://huggingface.co/docs/datasets/v1.1.1/_modules/datasets/utils/download_manager.html
|
28 |
+
# https://huggingface.co/docs/datasets/package_reference/builder_classes
|
29 |
+
# https://huggingface.co/datasets/animelover/danbooru2022/blob/main/danbooru2022.py
|
30 |
+
# https://huggingface.co/datasets/food101/blob/main/food101.py
|
31 |
+
# https://huggingface.co/docs/datasets/about_dataset_load
|
32 |
+
# https://huggingface.co/datasets/frgfm/imagenette/blob/main/imagenette.py
|
33 |
+
# https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html
|
34 |
+
# DatasetInfo : https://huggingface.co/docs/datasets/package_reference/main_classes
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
|
|
|
41 |
BUILDER_CONFIGS = [
|
42 |
datasets.BuilderConfig(
|
43 |
name="train",
|
44 |
+
description=_DESCRIPTION,
|
45 |
# data_url = train_data_url["train"][0],
|
46 |
# metadata_urls = {
|
47 |
# "train" : train_metadata_paths["train"][0]
|
48 |
# }
|
49 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
]
|
51 |
|
52 |
def _info(self) -> DatasetInfo:
|