Commit
•
89700d7
1
Parent(s):
f97fc90
Remove deprecated tasks (#2)
Browse files- Remove deprecated tasks (680d7498a208756c1b8617dd42e6060319c238d5)
- imagenette.py +0 -7
imagenette.py
CHANGED
@@ -3,7 +3,6 @@ import json
|
|
3 |
from pathlib import Path
|
4 |
|
5 |
import datasets
|
6 |
-
from datasets.tasks import ImageClassification
|
7 |
|
8 |
# Adapted from https://huggingface.co/datasets/nateraw/imagenette/blob/main/imagenette.py
|
9 |
|
@@ -127,12 +126,6 @@ class Imagenette(datasets.GeneratorBasedBuilder):
|
|
127 |
supervised_keys=("path", "labels"),
|
128 |
homepage="https://github.com/fastai/imagenette",
|
129 |
citation=_CITATION,
|
130 |
-
task_templates=[
|
131 |
-
ImageClassification(
|
132 |
-
image_column="path",
|
133 |
-
label_column="labels",
|
134 |
-
)
|
135 |
-
],
|
136 |
)
|
137 |
|
138 |
def _split_generators(self, dl_manager):
|
|
|
3 |
from pathlib import Path
|
4 |
|
5 |
import datasets
|
|
|
6 |
|
7 |
# Adapted from https://huggingface.co/datasets/nateraw/imagenette/blob/main/imagenette.py
|
8 |
|
|
|
126 |
supervised_keys=("path", "labels"),
|
127 |
homepage="https://github.com/fastai/imagenette",
|
128 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
)
|
130 |
|
131 |
def _split_generators(self, dl_manager):
|