Search Unity

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

Question Couldn't connect to trainer on port 5004 using API version 1.5.0. Will perform inference instead.

Discussion in 'ML-Agents' started by ragi2, May 31, 2023.

  1. ragi2

    ragi2

    Joined:
    Feb 4, 2018
    Posts:
    1
    as topic shown, im using pc(win11)

    -anaconda setup
    -python 3.9.16
    -mlagents/mlagents-envs 0.30.0
    -torch 2.0.1+cull7 (tried 1.7.1+cull7 as well)
    -torchvision 0.15.2+cull7

    unity 2022.2.15f1 , on windows build settings
    mlagent package(unity side) 2.0.1

    i can start the training in the editor, however, the anaconda prompt cannot pickup the scene as unity cannot connect to port. How can i solve this? upload_2023-5-31_14-37-20.png
     
    Last edited: May 31, 2023
  2. GamerLordMat

    GamerLordMat

    Joined:
    Oct 10, 2019
    Posts:
    185
    have you added a decision requester to your agent?