-
Notifications
You must be signed in to change notification settings - Fork 505
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
[WIP] Bugfix obs transformer #903
[WIP] Bugfix obs transformer #903
Conversation
There are integration tests wrapped in the baseline trainer .py class, but I agree there should be more unitifed tests. I am also pretty sure most of the cube2equirect etc... have round trip tests as well. |
@Skylion007 Can you help me figure out what the shape of the transform is supposed to be? It looks like none of the obs_transform actually modify the shape of the observation, but the observation space shape is modified by the config, which confuses me. Also, shouldn't the non-target uuids obs be removed from the observation space? |
@vincentpierre No, none of the none-target uuids should be removed. You would need a seperate deleter UUID transform to do that. They can definitely modify the shape of the observation transform. A fully integrated test can be found here:
habitat-lab/test/test_baseline_trainers.py Line 128 in e2cb808
|
@Skylion007 I saw this integrated test, but I think we need a unit test. The observation output shape is currently NOT the same as the observation space shape (see the CI error). The test only works when the config shape is the same as the observation shape and it does not work in the general case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @vincentpierre
* [Bug fix + test] Adding a test for obs_transformers * adding the test * making the test harder * fixing tests by removing testing on the batching dimensions Co-authored-by: vincentpierre <vincentpierre@users.noreply.github.com>
* [Bug fix + test] Adding a test for obs_transformers * adding the test * making the test harder * fixing tests by removing testing on the batching dimensions Co-authored-by: vincentpierre <vincentpierre@users.noreply.github.com>
Motivation and Context
Realized there was no test for obs_transforms. This is a first attempt at doing this.
The test simply makes sure that each individual transform is able to properly modify the observation_space as well as transforming an image with said dimension.
How Has This Been Tested
Types of changes
Checklist