Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
DOCLINES = __doc__.split('\n')

REQUIRED_PKGS = [
'absl-py',
'absl-py>=1.0.0',
# Min version of 0.5.0 as old array_record wheel are bugged on all
# platform except 'x86_64'. See
# https://github.com/google/array_record/issues/71
Expand Down Expand Up @@ -105,8 +105,8 @@
'datasets/ogbg_molpcba/tasks.txt',
'datasets/quickdraw/labels.txt',
'datasets/smartwatch_gestures/labels.txt',
'image_classification/caltech101_labels.txt',
'image_classification/categories_places365.txt',
'datasets/caltech101/caltech101_labels.txt',
'datasets/places365_small/categories_places365.txt',
'image_classification/cbis_ddsm_calc_distributions.txt',
'image_classification/cbis_ddsm_calc_types.txt',
'image_classification/cbis_ddsm_mass_margins.txt',
Expand All @@ -118,17 +118,17 @@
'image_classification/i_naturalist2018/inaturalist2018_supercategories.txt',
'image_classification/i_naturalist2021/i_naturalist2021_labels.txt',
'image_classification/i_naturalist2021/i_naturalist2021_supercategories.txt',
'image_classification/imagenet_resized_labels.txt',
'image_classification/imagenette_labels.txt',
'image_classification/imagewang_labels.txt',
'datasets/imagenet_resized/imagenet_resized_labels.txt',
'datasets/imagenette/imagenette_labels.txt',
'datasets/imagewang/imagewang_labels.txt',
'image_classification/inaturalist_labels.txt',
'image_classification/inaturalist_supercategories.txt',
'image_classification/placesfull/categories_placesfull.txt',
'image_classification/plantae_k_urls.txt',
'image_classification/sun397_labels.txt',
'image_classification/sun397_tfds_te.txt',
'image_classification/sun397_tfds_tr.txt',
'image_classification/sun397_tfds_va.txt',
'datasets/plantae_k/plantae_k_urls.txt',
'datasets/sun397/sun397_labels.txt',
'datasets/sun397/sun397_tfds_te.txt',
'datasets/sun397/sun397_tfds_tr.txt',
'datasets/sun397/sun397_tfds_va.txt',
'object_detection/open_images_classes_all.txt',
'object_detection/open_images_classes_boxable.txt',
'object_detection/open_images_classes_trainable.txt',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow as tf
import tensorflow_datasets.public_api as tfds

_LABELS_FNAME = "image_classification/caltech101_labels.txt"
_LABELS_FNAME = "datasets/caltech101/caltech101_labels.txt"
_URL = "https://data.caltech.edu/records/mzrjq-6wc02/files/caltech-101.zip?download=1"
_TRAIN_POINTS_PER_CLASS = 30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import numpy as np
import tensorflow_datasets.public_api as tfds

_LABELS_FNAME = 'image_classification/imagenet_resized_labels.txt'
_LABELS_FNAME = 'datasets/imagenet_resized/imagenet_resized_labels.txt'
_URL_PREFIX = 'http://www.image-net.org/data/downsample/'


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow as tf
import tensorflow_datasets.public_api as tfds

_LABELS_FNAME = "image_classification/imagenette_labels.txt"
_LABELS_FNAME = "datasets/imagenette/imagenette_labels.txt"
_URL_PREFIX = "https://s3.amazonaws.com/fast-ai-imageclas/"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Imagewang contains Imagenette and Imagewoof combined.
"""

_LABELS_FNAME = "image_classification/imagewang_labels.txt"
_LABELS_FNAME = "datasets/imagewang/imagewang_labels.txt"
_URL_PREFIX = "https://s3.amazonaws.com/fast-ai-imageclas"
_SIZES = ["full-size", "320px", "160px"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

_IMAGE_SHAPE = (256, 256, 3)

_LABELS_FNAME = "image_classification/categories_places365.txt"
_LABELS_FNAME = "datasets/places365_small/categories_places365.txt"


class Builder(tfds.core.GeneratorBasedBuilder):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
("walnut_h", "WALNUT DISEASED"),
("walnut-h", "WALNUT HEALTHY"),
]
_URLS_FNAME = "image_classification/plantae_k_urls.txt"
_URLS_FNAME = "datasets/plantae_k/plantae_k_urls.txt"
_MAX_DOWNLOAD_RETRY = 10


Expand Down
4 changes: 2 additions & 2 deletions tensorflow_datasets/datasets/sun397/sun397_dataset_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ def __init__(self, tfds_split_files=None, **kwargs):
}
for split, filename in tfds_split_files.items():
tfds_split_files[split] = tfds.core.tfds_path(
os.path.join("image_classification", filename)
os.path.join("datasets", "sun397", filename)
)
self._tfds_split_files = tfds_split_files

def _info(self):
names_file = tfds.core.tfds_path(
os.path.join("image_classification", "sun397_labels.txt")
os.path.join("datasets", "sun397", "sun397_labels.txt")
)
return self.dataset_info_from_configs(
features=tfds.features.FeaturesDict({
Expand Down
Loading