Can ImageFolder be used to load binary image data?

As the title says, is it possible to load binary image data with ImageFolder? The documentation doesn’t mention anything in specific about this. Thanks in advance.

Yes, this is possible and the ImageFolder will then return target values in [0, 1].
Depending on your used criterion you might need to double check if the shape is correct and manipulate it if needed.

1 Like