question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do we really need mini-imagenet padding to be 8? What just having it be 84 without the 8?

See original GitHub issue

e.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:closed
  • Created 10 months ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
seba-1511commented, Nov 18, 2022

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).

0reactions
brando90commented, Nov 18, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found