five

nateraw/auto-exp-2

收藏
Hugging Face2021-07-13 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/nateraw/auto-exp-2
下载链接
链接失效反馈
官方服务:
资源简介:
这是一个用于图像分类任务的数据集,用户可以通过HuggingFace的`datasets`库加载该数据集,并对图像进行预处理。

--- 任务类别: - 其他 任务子类型: - 其他图像分类 - 图像分类 标签: - 自动生成 - 图像分类 --- # nateraw/auto-exp-2 图像分类数据集 ## 使用方法 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-exp-2') ds = ds.with_transform(image_loader)
提供机构:
nateraw
原始信息汇总

数据集概述

数据集名称

nateraw/auto-exp-2

数据集类型

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-exp-2) ds = ds.with_transform(image_loader)

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

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

二维码
科研交流群

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

数据驱动未来

携手共赢发展

商业合作