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.

Implement RandomResizedCrop layer

See original GitHub issue

Randomly resized cropping is pretty much a standard augmentation transformation that is used to train vision models. Recently, a team at Facebook also showed why it’s often necessary to include this transformation for better generalization [1].

An implementation of this layer in PyTorch is available as RandomResizedCrop.

References:

[1] https://arxiv.org/abs/2106.05121

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bhackcommented, Mar 14, 2022

@AdityaKane2001 we had a discussion about the randomizzation in the batch at https://github.com/keras-team/keras-cv/pull/146

1reaction
LukeWoodcommented, Feb 18, 2022

They’d be a RaggedTensor really, which is a bad UX

Read more comments on GitHub >

github_iconTop Results From Across the Web

RandomResizedCrop — Torchvision main documentation
In torchscript mode size as single int is not supported, use a sequence of length 1: [size, ] . scale (tuple of python:float)...
Read more >
tf.keras.layers.RandomCrop | TensorFlow v2.11.0
A preprocessing layer which randomly crops images during training. ... The layer will crop all the images in the same batch to the...
Read more >
Is there an equivalent to PyTorch's RandomResizedCrop in ...
... PyTorch implementation, that I called crop_shape that I found clearer: import tensorflow as tf class RandomResizedCrop(tf.keras.layers.
Read more >
Why and How to Implement Random Crop Data ...
Random crop is a data augmentation technique wherein we create a random subset of an original image. This helps our model generalize better ......
Read more >
Runtime Error · Issue #17 · jacobgil/pytorch-pruning
Hi I have encountered this error while running the code. After getting the information about the filters which are to be pruned, ...
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