CoolFace
Datasetpublic

louiecerv/cats_dogs_dataset

Cats and Dogs Image Classification Dataset This dataset contains images of cats and dogs, intended for image classification tasks. It includes two classes: "cats" and "dogs". Dataset Structure The dataset is structured into two splits: train: Contains 8000 images for training. test: Contains 2000 images for testing. Images are stored in RGB format with a resolution of 128x128 pixels. Data Loading and Usage The dataset can be loaded using the… See the full description on the dataset page: https://huggingface.co/datasets/louiecerv/cats_dogs_dataset.

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes141downloads
Dataset Card

Cats and Dogs Image Classification Dataset

This dataset contains images of cats and dogs, intended for image classification tasks. It includes two classes: "cats" and "dogs".

Dataset Structure

The dataset is structured into two splits:

  • —train: Contains 8000 images for training.
  • —test: Contains 2000 images for testing.

Images are stored in RGB format with a resolution of 128x128 pixels.

Data Loading and Usage

The dataset can be loaded using the Hugging Face Datasets library:

python
from datasets import load_dataset

dataset = load_dataset("cats_dogs_dataset")
This will return a DatasetDict object with the train and test splits.

Example Usage
Python

from datasets import load_dataset

dataset = load_dataset("cats_dogs_dataset")

# Access the first training example
example = dataset["train"]

# Print the image and label
print(example["image"])
print(example["label"])