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.

[AutoAugment] Add Rotate operation.

See original GitHub issue

Short Description Rotate is one of the operations used by AutoAugment. Currently it’s not present in keras_cv, so AutoAugment cannot be implemented.

What it does From Tensorlfow Addons docs: Rotate image(s) counterclockwise by the passed angle(s) in radians.

Papers AutoAugment: Learning Augmentation Strategies from Data arxiv link

Existing Implementations Tensorflow addons tensorflow/tpu

Other Information

  • This is different from keras RandomRotation as we need to be able to control the probability at which the op is applied.
  • Following standard Keras layer naming this could probably be called Rotation?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sebastian-szcommented, May 3, 2022

will you ever want to preprocess your inputs by ALWAYS rotating by X deg?

@LukeWood yes - this is actually the case in AutoAugment, where you want to rotate the image by X degrees based on subpolicy’s magnitude: rotate_autoaugment

@quantumalaviya Thanks for linking #407 I didn’t know about it and it looks like exactly the thing needed.

I agree that this function doesn’t need to be a KLP and is good enough as a utility function. From my perspective this issue can be closed.

1reaction
LukeWoodcommented, May 3, 2022

Cool, let’s leave it open until we can merge @quantumalaviya ’s PR and actually include the utility to rotate an image a fixed amount

Read more comments on GitHub >

github_iconTop Results From Across the Web

AutoAugment Explained - Papers With Code
AutoAugment is an automated approach to find data augmentation policies from data. ... The operations searched over are ShearX/Y, TranslateX/Y, Rotate, ...
Read more >
AutoAugment: Learning Augmentation Policies from Data - arXiv
In this paper, we describe a simple procedure called AutoAugment to automatically search for improved data augmentation policies.
Read more >
AutoAugment - Learning Augmentation Policies from Data
In this tutorial, we will be looking at how one can make use of AutoAugment as a data augmentation technique to train a...
Read more >
How to improve your image classifier with Google's ...
Google's AutoAugment is automatically finding optimized data ... consider 16 operations: 14 from the Python image library PIL like rotating, ...
Read more >
tfm.vision.augment.AutoAugment | TensorFlow v2.11.0
[('Invert', 0.6, 5), ('Rotate', 0.2, 9), ('ShearX', 0.1, 2)], ...] The outer-most list must be 3-d. The number of operations in a sub-policy...
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