Commit
•
3834587
1
Parent(s):
ef44f5f
Remove deprecated tasks
Browse filesThis dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999
- imagenette.py +0 -6
imagenette.py
CHANGED
@@ -2,7 +2,6 @@ import os
|
|
2 |
from pathlib import Path
|
3 |
|
4 |
import datasets
|
5 |
-
from datasets.tasks import ImageClassification
|
6 |
|
7 |
|
8 |
_CITATION = """
|
@@ -87,11 +86,6 @@ class Imagenette(datasets.GeneratorBasedBuilder):
|
|
87 |
supervised_keys=("image_file_path", "labels"),
|
88 |
homepage="https://github.com/fastai/imagenette",
|
89 |
citation=_CITATION,
|
90 |
-
task_templates=[
|
91 |
-
ImageClassification(
|
92 |
-
image_file_path_column="image_file_path", label_column="labels", labels=LABELS
|
93 |
-
)
|
94 |
-
],
|
95 |
)
|
96 |
|
97 |
def _split_generators(self, dl_manager):
|
|
|
2 |
from pathlib import Path
|
3 |
|
4 |
import datasets
|
|
|
5 |
|
6 |
|
7 |
_CITATION = """
|
|
|
86 |
supervised_keys=("image_file_path", "labels"),
|
87 |
homepage="https://github.com/fastai/imagenette",
|
88 |
citation=_CITATION,
|
|
|
|
|
|
|
|
|
|
|
89 |
)
|
90 |
|
91 |
def _split_generators(self, dl_manager):
|