five

nateraw/auto-cats-and-dogs

收藏
Hugging Face2021-07-13 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/nateraw/auto-cats-and-dogs
下载链接
链接失效反馈
官方服务:
资源简介:
该数据集名为nateraw/auto-cats-and-dogs,主要用于图像分类任务,特别是猫和狗的分类。数据集的加载方式包括使用PIL库加载图像并将其转换为RGB格式。数据集的标签和任务类别包括other-image-classification和image-classification。
提供机构:
nateraw
原始信息汇总

数据集概述

数据集名称

nateraw/auto-cats-and-dogs

数据集类型

Image Classification Dataset

任务类别

  • other
  • image-classification

任务ID

  • other-image-classification
  • image-classification

标签

  • auto-generated
  • image-classification

使用示例

python from PIL import Image from datasets import load_dataset

def pil_loader(path: str): with open(path, rb) as f: im = Image.open(f) return im.convert(RGB)

def image_loader(example_batch): example_batch[image] = [ pil_loader(f) for f in example_batch[file] ] return example_batch

ds = load_dataset(nateraw/auto-cats-and-dogs) ds = ds.with_transform(image_loader)

5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作