Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated parse_policy_info function in augment.py #13509

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LakshmiKalaKadali
Copy link
Collaborator

This PR is raised to add more flexible control over the randomness in the augmentation process by changing level += tf.random.normal([], dtype=tf.float32) to level += level_std * tf.random.normal([], dtype=tf.float32) to the function parse_policy_info instead of standard deviation always 1.

This PR is raised to add more flexible control over the randomness in the augmentation process by changing `level += tf.random.normal([], dtype=tf.float32)` to `level += level_std * tf.random.normal([], dtype=tf.float32)` to the function `parse_policy_info` instead of standard deviation always 1.
@@ -1869,7 +1869,7 @@ def _parse_policy_info(name: str,
func = NAME_TO_FUNC[name]

if level_std > 0:
level += tf.random.normal([], dtype=tf.float32)
level += level_std*tf.random.normal([], dtype=tf.float32)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will change the behavior completely. I am worrying about the effects of this. Have you done any tests verifying it won't break existing results using this augmentation ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to bring more flexibility, but the default behavior should keep backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models:official models that come under official repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants