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.

[Bug] RandomCrop returns padded image when p=0

See original GitHub issue

🐛 Bug

RandomCrop returns the padded image when p=0, Probably RandomCrop3D is also affected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shijianjiancommented, Dec 17, 2020

is this still relevant ?

Hasn’t been fixed yet.

0reactions
edgarribacommented, Dec 16, 2020

is this still relevant ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RandomCrop — Torchvision main documentation - PyTorch
pad_if_needed (boolean) – It will pad the image if smaller than the desired size to avoid raising an exception. Since cropping is done...
Read more >
Why is RandomCrop with size 84 and padding 8 returning an ...
The padding is applied to the input image or tensor before applying the random crop. Ultimately, the output image has a spatial size...
Read more >
Random cropping in data augmentation · Issue #230 - GitHub
So I random crop the image to 256x256 for training because of GPU ... before resizing and padding but sometimes I encounter the...
Read more >
oxford.py · master · IntelligentTEAM / AAAI2019-SIFCN(Accepted ...
make random crop from the input image. 119. :param im: 120. :param polys: 121. :param tags: 122. :param crop_background: 123. :param max_tries: 124....
Read more >
Release 1.8.0
Fix bug where multi-image Estimator eval summaries were not displayed ... Estimator now supports Dataset : input_fn can return a Dataset instead of...
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