auto-exp-2 / README.md
albertvillanova's picture
Fix task tags
9cc75b4
|
raw
history blame
597 Bytes
---
task_categories:
- other
- image-classification
task_ids: []
tags:
- auto-generated
- image-classification
---
# nateraw/auto-exp-2
Image Classification Dataset
## Usage
```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)
```