Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Help Wanted Can I integrate python into unity mlagents?

Discussion in 'ML-Agents' started by Zylkowski_a, Jun 20, 2020.

  1. Zylkowski_a

    Zylkowski_a

    Joined:
    Jul 27, 2019
    Posts:
    92
    I am coming from pytorch background in case of machine learning. I would like to make simple project and create whole environment in Unity. The thing is I would like to utilize python if it's possible. So, is it possible to use python/pytorch with mlagents. If yes, then how can I make it work together?
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    23
  3. janimator

    janimator

    Joined:
    Apr 5, 2013
    Posts:
    42
    I've been using MLAgents 0.15.1 and have hard a very difficult time getting my Python Pytorch model to work with my project. One of the main issues was getting the model file to re-run back onto Unity. I had to format the model to be a barracuda model and use using barracuda to get anything to load (could not plug my model back into mlagents).
    I'm continuing to deal with many issues.

    Is the latest version of MLAgents any different? Was something changed? Is there an example showing how to train agents with Pytorch then plug the model back into unity?
     
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    508
    Hey there @janimator - which version of Python are you using?
     
  5. ervteng_unity

    ervteng_unity

    Unity Technologies

    Joined:
    Dec 6, 2018
    Posts:
    48
unityunity