Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question RayPerceptionSensor3D - specify different layer mask/tags during inference?

Discussion in 'ML-Agents' started by Fr2, Jul 3, 2023.

  1. Fr2


    Jan 19, 2013
    I can't think of a way to do this, but maybe someone has an idea...

    I have a successfully trained model which uses a RayPerceptionSensor3D with a layer mask and some detectable tags.

    During inference I'd like to use exactly the same trained model for multiple agents simultaneously, but be able to specify a different layer mask and tags for each.

    An example would be that agent A would avoid objects with a certain tag/layer, and agent B would avoid objects with a different tag/layer, but using exactly the same behaviour.

    The only solution I can think of is to re-train my model with each different tag/layer combo...