Search Unity

Question Record demo for SoccerTwos env

Discussion in 'ML-Agents' started by manuiaccarino, Dec 13, 2023.

  1. manuiaccarino


    Nov 15, 2023
    Hello everyone, i'm new to Unity and developing a project for my final thesis. I want to create a demo from an already done model from hugging face.
    I've tried to do it following this tutorial from youtube:
    The demo is done correctly but when i try to use it with Behavioral Cloning I run into this error: File "C:\Users\emanu\miniconda3\envs\mlagents7\lib\site-packages\mlagents\trainers\", line 119, in demo_to_buffer raise RuntimeError( RuntimeError: The actions Continuous: 0, Discrete: (3, 3, 3) in demonstration do not match the policy's Continuous: 0, Discrete: (1,). now i have this error
    I think it's a problem related to how the demo was done
    Trying to change the behavior parameters on Unity i have this warning: upload_2023-12-13_14-55-28.png
    and when i try to retake the Demo, unity just crash. Someone know how to resolve this problem?
    this are my settings:
    The model is a .onnx file
    Thank u very much, i hope to have explained clearly my problem