My commit
Browse files
aphantasia_drawing_dataset.py
CHANGED
@@ -37,8 +37,7 @@ from typing import List
|
|
37 |
import datasets
|
38 |
import logging
|
39 |
|
40 |
-
|
41 |
-
# Find for instance the citation on arxiv or on the dataset repo/website
|
42 |
_CITATION = """\
|
43 |
@misc{Bainbridge_Pounder_Eardley_Baker_2023,
|
44 |
title={Quantifying Aphantasia through drawing: Those without visual imagery show deficits in object but not spatial memory},
|
@@ -50,8 +49,7 @@ month={Sep}
|
|
50 |
}
|
51 |
"""
|
52 |
|
53 |
-
|
54 |
-
# You can copy an official description
|
55 |
_DESCRIPTION = """\
|
56 |
This dataset comes from the Brain Bridge Lab from the University of Chicago.
|
57 |
It is from an online memory drawing experiment with 61 individuals with aphantasia
|
@@ -63,15 +61,13 @@ was made available on the OSF website linked above. It was created July 31, 2020
|
|
63 |
updated September 27, 2023.
|
64 |
"""
|
65 |
|
66 |
-
|
67 |
_HOMEPAGE = "https://osf.io/cahyd/"
|
68 |
|
69 |
-
|
70 |
_LICENSE = ""
|
71 |
|
72 |
-
|
73 |
-
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
74 |
-
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
75 |
|
76 |
url = "https://drive.google.com/file/d/1aRhQlKPDk29yYPkx2kPhqaMwec5QZ4JE/view?usp=sharing"
|
77 |
|
@@ -82,7 +78,7 @@ def _get_drive_url(url):
|
|
82 |
|
83 |
_URL = {"train": _get_drive_url(url)}
|
84 |
|
85 |
-
|
86 |
class AphantasiaDrawingDataset(datasets.GeneratorBasedBuilder):
|
87 |
"""TODO: Short description of my dataset."""
|
88 |
|
@@ -129,8 +125,6 @@ class AphantasiaDrawingDataset(datasets.GeneratorBasedBuilder):
|
|
129 |
"bedroom": datasets.Image(decode = True)
|
130 |
}
|
131 |
}),
|
132 |
-
# No default supervised_keys (as we have to pass both question
|
133 |
-
# and context as input).
|
134 |
supervised_keys=None,
|
135 |
homepage=_HOMEPAGE,
|
136 |
citation=_CITATION,
|
|
|
37 |
import datasets
|
38 |
import logging
|
39 |
|
40 |
+
|
|
|
41 |
_CITATION = """\
|
42 |
@misc{Bainbridge_Pounder_Eardley_Baker_2023,
|
43 |
title={Quantifying Aphantasia through drawing: Those without visual imagery show deficits in object but not spatial memory},
|
|
|
49 |
}
|
50 |
"""
|
51 |
|
52 |
+
|
|
|
53 |
_DESCRIPTION = """\
|
54 |
This dataset comes from the Brain Bridge Lab from the University of Chicago.
|
55 |
It is from an online memory drawing experiment with 61 individuals with aphantasia
|
|
|
61 |
updated September 27, 2023.
|
62 |
"""
|
63 |
|
64 |
+
|
65 |
_HOMEPAGE = "https://osf.io/cahyd/"
|
66 |
|
67 |
+
|
68 |
_LICENSE = ""
|
69 |
|
70 |
+
|
|
|
|
|
71 |
|
72 |
url = "https://drive.google.com/file/d/1aRhQlKPDk29yYPkx2kPhqaMwec5QZ4JE/view?usp=sharing"
|
73 |
|
|
|
78 |
|
79 |
_URL = {"train": _get_drive_url(url)}
|
80 |
|
81 |
+
|
82 |
class AphantasiaDrawingDataset(datasets.GeneratorBasedBuilder):
|
83 |
"""TODO: Short description of my dataset."""
|
84 |
|
|
|
125 |
"bedroom": datasets.Image(decode = True)
|
126 |
}
|
127 |
}),
|
|
|
|
|
128 |
supervised_keys=None,
|
129 |
homepage=_HOMEPAGE,
|
130 |
citation=_CITATION,
|