Prototypical-Networks-for-Few-shot-Learning-PyTorch icon indicating copy to clipboard operation
Prototypical-Networks-for-Few-shot-Learning-PyTorch copied to clipboard

query in loading images

Open Gateway2745 opened this issue 3 years ago • 2 comments

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!

Gateway2745 avatar Mar 10 '21 07:03 Gateway2745

hi, did you find any answer?

wh1994-phd avatar Apr 20 '22 13:04 wh1994-phd

nope

Gateway2745 avatar Apr 20 '22 14:04 Gateway2745