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

Adding a fully connected visual encoder for super small visual input + tests #5351

Merged
merged 5 commits into from May 11, 2021

Conversation

vincentpierre
Copy link
Contributor

@vincentpierre vincentpierre commented May 10, 2021

Proposed change(s)

Adding a fully connected option to visual encoding.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@vincentpierre vincentpierre self-assigned this May 10, 2021
kernel_init=Initialization.KaimingHeNormal,
kernel_gain=1.41, # Use ReLU gain
),
nn.LeakyReLU(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could use another activation here, but I think ReLU is enough.

@vincentpierre vincentpierre changed the title initial commit for a fully connected visual encoder Adding a fully connected visual encoder for super small visual input + tests May 10, 2021


@pytest.mark.parametrize(
"vis_class_and_size",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you should be able to do "vis_class, size" here, and test_visual_encoder_trains(vis_class, size) as the test definition. Not a big deal though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not know I could do that. Thanks!

@vincentpierre vincentpierre merged commit bbdcab1 into main May 11, 2021
@delete-merged-branch delete-merged-branch bot deleted the develop-fully-connected-visual-encoder branch May 11, 2021 21:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants