Deci-AI / data-gradients

Computer Vision dataset analysis
Apache License 2.0
293 stars 33 forks source link

Feature/sg 1155 support pil #199

Closed Louis-Dupont closed 1 year ago

Louis-Dupont commented 1 year ago

What ?

Make the output_mapper support loading images from List of PIL image, or List of string.

Why ?

When you try to use torchvision datasets, the output of the dataset is PIL images. If the user passes a Dataloader, the output will be a list of PIL images, which is currently not supported. The same issue could happen if the dataset outputs a string, then we would not support the Dataloader.

Extra

I also added some extra fixes to make the unit tests properly work with the CI.