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

Hummingbird Course

Discussion in 'ML-Agents' started by HanAusBerlin, Jun 3, 2020.

  1. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Hi,
    I followed the course and it all went well so far. However, when I start the training I get a very weird behaviour. The birds start flying heading with their back towards the flowers. Or the opposite, so either the front rays are heading towards the ground or the sky. On my longest run after almost 2 million steps I got a reward of 2.5, but with the exact behaviour as above. I tried 2 more runs, same issue. I copy/pasted the source code to make sure its not a typo on my end, same result. I'd really try to go on with the course but theres no reaction on my comment in the section of the course so I am asking here if maybe someone of you got this as well and has an idea.
    I did not change any settings on the scripts, the yaml file or in the scene. Here is a short video that shows kind of the behaviour the birds seem to prefer most of the time:



    Thanks for helping!
     
    Last edited: Jun 3, 2020
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    508
    Thanks for reaching out! I'll flag this for the team, and pass along any guidance they have!
     
  3. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Thanks, I appreciate it. i am testing the examples from the git till than and having a lot of fun and good learning from those as well. :)
     
  4. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    8
    maybe it's because of yaw and pitch range.........it supposed to be -60, 60
     
    Last edited: Jun 6, 2020
  5. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Pitch range is as you say, yaw range is supposed to be -180f, 180f
    I tried changing the yaw range as well with the same result.
    I also double checked sensors, but theyre exactly like in the scene setup.
     
  6. HanAusBerlin

    HanAusBerlin

    Joined:
    Sep 13, 2017
    Posts:
    76
    Also getting this error, dont know if this is related:

    KeyNotFoundException: The given key was not present in the dictionary.
    System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <437ba245d8404784b9fbab9b439ac908>:0)
    FlowerArea.GetFlowerFromNectar (UnityEngine.Collider collider) (at Assets/Hummingbird/Scripts/FlowerArea.cs:53)
    HummingbirdAgent.TriggerEnterOrStay (UnityEngine.Collider collider) (at Assets/Hummingbird/Scripts/HummingbirdAgent.cs:379)
    HummingbirdAgent.OnTriggerStay (UnityEngine.Collider other) (at Assets/Hummingbird/Scripts/HummingbirdAgent.cs:360)
     
  7. bartezz32

    bartezz32

    Joined:
    Sep 13, 2018
    Posts:
    1
    I have same issue
     
    BCFEGAmes likes this.
  8. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    508
    Howdy all. After connecting with the teams, it was advised that you all open tickets directly in the Learn portal when you encounter issues like this. Thanks! :)
     
unityunity