Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
10K<n<100K
ArXiv:
License:
yourusername
commited on
Commit
•
6ae11b3
1
Parent(s):
39cc14c
:bug: finally fix this bug
Browse files- fairface.py +1 -2
fairface.py
CHANGED
@@ -9,7 +9,7 @@ logger = datasets.logging.get_logger(__name__)
|
|
9 |
class Fairface(datasets.GeneratorBasedBuilder):
|
10 |
|
11 |
_HOMEPAGE = "https://huggingface.co/datasets/nateraw/fairface/"
|
12 |
-
_URL = "https://huggingface.co/datasets/nateraw/fairface/
|
13 |
_URLS = {
|
14 |
"train": _URL + "train.pt",
|
15 |
"dev": _URL + "val.pt",
|
@@ -48,6 +48,5 @@ class Fairface(datasets.GeneratorBasedBuilder):
|
|
48 |
examples = pickle.load(f)
|
49 |
|
50 |
for i, ex in enumerate(examples):
|
51 |
-
print(ex)
|
52 |
_id = ex.pop('_id')
|
53 |
yield _id, ex
|
|
|
9 |
class Fairface(datasets.GeneratorBasedBuilder):
|
10 |
|
11 |
_HOMEPAGE = "https://huggingface.co/datasets/nateraw/fairface/"
|
12 |
+
_URL = "https://huggingface.co/datasets/nateraw/fairface/resolve/main/"
|
13 |
_URLS = {
|
14 |
"train": _URL + "train.pt",
|
15 |
"dev": _URL + "val.pt",
|
|
|
48 |
examples = pickle.load(f)
|
49 |
|
50 |
for i, ex in enumerate(examples):
|
|
|
51 |
_id = ex.pop('_id')
|
52 |
yield _id, ex
|