Dataloader getitem not working for DreamboothDatasets
{'login': 'salahiguiliz', 'id': 76955987, 'node_id': 'MDQ6VXNlcjc2OTU1OTg3', 'avatar_url': 'https://avatars.githubusercontent.com/u/76955987?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/salahiguiliz', 'html_url': 'https://github.com/salahiguiliz', 'followers_url': 'https://api.github.com/users/salahiguiliz/followers', 'following_url': 'https://api.github.com/users/salahiguiliz/following{/other_user}', 'gists_url': 'https://api.github.com/users/salahiguiliz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/salahiguiliz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/salahiguiliz/subscriptions', 'organizations_url': 'https://api.github.com/users/salahiguiliz/orgs', 'repos_url': 'https://api.github.com/users/salahiguiliz/repos', 'events_url': 'https://api.github.com/users/salahiguiliz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/salahiguiliz/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Hi! 

> (see example of DreamboothDatasets)


Could you please provide a link to it?  If you are referring to the example in the `diffusers` repo, your issue is unrelated to `datasets` as that example uses `Dataset` from PyTorch to load data.
### Describe the bug

 Dataloader getitem is not working as before (see example of [DreamboothDatasets](https://github.com/huggingface/peft/blob/main/examples/lora_dreambooth/train_dreambooth.py#L451C14-L529))
moving Datasets to 2.8.0 solved the issue.

### Steps to reproduce the bug

1- using DreamBoothDataset to load some images 
2- error after loading when trying to visualise the images 

### Expected behavior

I was expecting a numpy array of the image

### Environment info

- Platform: Linux-5.10.147+-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 9.0.0
- Pandas version: 1.3.5
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5600/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}