yenchanghsu / Generalized-ODIN

6 stars 0 forks source link

out of distribution images datasets #4

Closed ROBOTICSENGINEER closed 3 years ago

ROBOTICSENGINEER commented 3 years ago

what is transformation of out of distribution, resize to what, and how does it crop?

Can you share the link to where you download the out of distribution images datasets?

yenchanghsu commented 3 years ago

The OOD images can be downloaded here.

Below is how OOD images are processed with PyTorch:

transform = transforms.Compose([
        transforms.CenterCrop((32, 32)),
        transforms.ToTensor(),
        transforms.Normalize(mean=mean, std=std),
    ])
# mean and std is the same as your training data preprocessing