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

Custom model for multisensor environments #631

Closed
Benatti1991 opened this issue Dec 23, 2019 · 5 comments
Closed

Custom model for multisensor environments #631

Benatti1991 opened this issue Dec 23, 2019 · 5 comments
Labels
custom gym env Issue related to Custom Gym Env question Further information is requested

Comments

@Benatti1991
Copy link

Hello everyone,
I would like to create an algorithm to train multi sensor agent using your DRL framework.
What I have in mind is concatenating one or more convolutional layers whose input could be cameras or lidar sensor with 1D arrays from other sensors (such as GPS).
It looks like I should add an option to inputs.py and a custom model to manage this kind of environments. Would this be enough? Do you have any suggestion?
Thanks,
Simone

@araffin araffin added custom gym env Issue related to Custom Gym Env question Further information is requested labels Dec 23, 2019
@araffin
Copy link
Collaborator

araffin commented Dec 23, 2019

Related to #133

@Miffyli
Copy link
Collaborator

Miffyli commented Dec 23, 2019

arrafin beat me to it again <.<.

Just for more direct link: Here is an example on how to combine visual observation with 1D vector: #133 (comment)

@Benatti1991
Copy link
Author

Araffin, Miffly,
thank you for your answers. Actually I knew about the issue you linked, but I opened a new one for two reasons

  • Creating a new layer in the image input to fill it only with some data would mean wasting a lot of memory (the appended layer would be mostly padded zeros)
  • This approach wouldn't be feasible if there are more convolutional inputs with different resolutions.
    So, back to my question: what should I change (besides, obviously, a custom model) to manage multi-sensor environments?
    Thanks,
    Simone

@Miffyli
Copy link
Collaborator

Miffyli commented Dec 27, 2019

As discussed in #133, true multi-modal observations are not currently possible and you have to resort to this kind of dirty hacks for now. However this is the very next thing on the to-do list after TF2 support, which is slowly getting there but currently on a hiatus due to holidays :)

@araffin
Copy link
Collaborator

araffin commented Jan 19, 2020

Closing in favor of #133

@araffin araffin closed this as completed Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom gym env Issue related to Custom Gym Env question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants