Top34051 / colorswap

MIT License
10 stars 0 forks source link

Corrupted Images #1

Open NicholasMoratelli opened 1 month ago

NicholasMoratelli commented 1 month ago

Hi!

I would like to use your dataset but I am having problems loading images. They seem to be corrupted both by downloading them from Google Drive and huggingface.

TristanThrush commented 1 month ago

Thanks for your interest! What errors do you see when trying to load the images? Or if the issue is that images just don't look right, can you post examples of them here?

TristanThrush commented 1 month ago

I'm curious what happens when you do this?

$ huggingface-cli login
$ python
>>> from datasets import load_dataset
>>> dataset = load_dataset("stanfordnlp/colorswap", use_auth_token=True)
>>> dataset["train"][0]["image_1"].open()
TristanThrush commented 1 month ago

(before doing this, you also have to click to access the dataset on the huggingface dataset page while logged into your account)