Michał Duszyk

Results 3 comments of Michał Duszyk

Would you be open to adding this? I’d be happy to contribute a PR if there’s interest. Thanks!

I was thinking about sth like this: ```python from pathlib import Path from torchvision.io import read_image, ImageReadMode class UnlabeledImageFolder: def __init__(self, root_dir, patterns=('**/*.jpg', '**/*.png'), transform=None): self.root = Path(root_dir) self.images =...

```DatasetFolder``` and ```ImageFolder``` that extends it assume certain directory structure where subdirectories of the dataset root directory are considered to be classes. Then dataset returns (input, target) pairs. I was...