Commit
•
8491549
1
Parent(s):
ae601bc
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
- cats_vs_dogs.py +0 -6
cats_vs_dogs.py
CHANGED
@@ -18,7 +18,6 @@ from pathlib import Path
|
|
18 |
from typing import List
|
19 |
|
20 |
import datasets
|
21 |
-
from datasets.tasks import ImageClassification
|
22 |
|
23 |
|
24 |
logger = datasets.logging.get_logger(__name__)
|
@@ -54,11 +53,6 @@ class CatsVsDogs(datasets.GeneratorBasedBuilder):
|
|
54 |
}
|
55 |
),
|
56 |
supervised_keys=("image_file_path", "labels"),
|
57 |
-
task_templates=[
|
58 |
-
ImageClassification(
|
59 |
-
image_file_path_column="image_file_path", label_column="labels", labels=["Cat", "Dog"]
|
60 |
-
)
|
61 |
-
],
|
62 |
homepage=_HOMEPAGE,
|
63 |
citation=_CITATION,
|
64 |
)
|
|
|
18 |
from typing import List
|
19 |
|
20 |
import datasets
|
|
|
21 |
|
22 |
|
23 |
logger = datasets.logging.get_logger(__name__)
|
|
|
53 |
}
|
54 |
),
|
55 |
supervised_keys=("image_file_path", "labels"),
|
|
|
|
|
|
|
|
|
|
|
56 |
homepage=_HOMEPAGE,
|
57 |
citation=_CITATION,
|
58 |
)
|