Do we really need mini-imagenet padding to be 8? What just having it be 84 without the 8?
See original GitHub issuee.g.
train_data_transforms = Compose([
ToPILImage(),
RandomCrop(84, padding=8), # todo: do we really need the padding = 8
ColorJitter(brightness=0.4, contrast=0.4, saturation=0.4),
RandomHorizontalFlip(),
ToTensor(),
normalize,
])
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
When to use Padding when Randomly Cropping Images in ...
I was going to go for the random crop with padding = 8 since that would make the model more robust to contours...
Read more >Why isn't RandomCrop inserting the padding in pytorch? - vision
Do we really need mini-imagenet padding to be 8? What just having it be 84 without the 8? · Issue #376 · learnables/learn2learn...
Read more >Why isn't RandomCrop inserting the padding in pytorch?
They are padded to 84+8 then cropped back to 84: you can see the black padding on each image (eg, on the left...
Read more >[data request] miniImageNet · Issue #204 · tensorflow/datasets
Only problem is Images are resized to 84x84. I do not know why this specific resize option is used nor does the original...
Read more >A Baseline for Few-Shot Image Classification - arXiv Vanity
We do not advocate our approach as the solution for few-shot learning, but simply use the ... and acceleration techniques from the recent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
They are padded to 84+8 then cropped back to 84: you can see the black padding on each image (eg, on the left for the 2nd image).
it looks like the pad size is random based on the croping. Is the padding added on all sides before the crop?