albertvillanova HF staff commited on
Commit
680d749
·
verified ·
1 Parent(s): f97fc90

Remove deprecated tasks

Browse files

This 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

Files changed (1) hide show
  1. 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):