Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Imitaion & curriculum learning error

Discussion in 'ML-Agents' started by kennithtse, Apr 11, 2020.

  1. kennithtse


    May 5, 2019
    Hi all,

    I'm trying to implement both imitation and curriculum learning in my own learning environment but I encountered two errors:

    1. SideChannelUtils underlined when I wanted to access values from the curricula
    I learnt this from the WallJumpAgent.cs, is this a correct way to access?

    2. Value Error during training with demonstration, sth like
    ValueError: Cannot feed value of shape (8, 5) for Tensor 'teacher_action:0', which has shape '(?, 4)'

    Any ideas how to fix these? Thanks!
    Last edited: Apr 11, 2020
  2. LexVolkov


    Sep 14, 2014
    Usually this means that the amount of received data from manual control does not coincide with the amount of received data.
    That is, an array of input data in Heuristic ()
    Differs from the data array received in OnActionReceived ()
    Or somewhere else is not a dock. But check to see if everything matches clearly.
  3. celion_unity


    Unity Technologies

    Jun 12, 2019
    @kennithtse Can you provide the full stacktrace for ValueError? I think it means that the action size in your demonstration is not the same size as the ones you're training with (5 vs 4) but we need to check for that and make the error clearer.