orobix / Prototypical-Networks-for-Few-shot-Learning-PyTorch

Implementation of Prototypical Networks for Few Shot Learning (https://arxiv.org/abs/1703.05175) in Pytorch
MIT License
986 stars 210 forks source link

query in loading images #26

Open Gateway2745 opened 3 years ago

Gateway2745 commented 3 years ago

Hi.

Thanks for the repo. I have a couple of queries in the load_img function.

https://github.com/orobix/Prototypical-Networks-for-Few-shot-Learning-PyTorch/blob/5e18a5e5b369903092f683d434efb12c7c40a83c/src/omniglot_dataset.py#L166-L181

1) Is it necessary to do x = 1.0 - torch.from_numpy(x) ? I understand this is to have 1s in the region of interest (the character) but does it really help?

2) Why do you take the transpose (rotates the image again) at the end?

Thanks!

wh1994-phd commented 2 years ago

hi, did you find any answer?

Gateway2745 commented 2 years ago

nope