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)



