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.

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:
    1,766
    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:
    121
    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)
     
    jason_sprouse likes this.
  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:
    1,766
    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! :)
     
  9. sikaar

    sikaar

    Joined:
    May 10, 2019
    Posts:
    3
    I encountered the same issue- I figured out that adding the floatingIsland -> Islandgrass prefab tag = boundary, was helping getting a significantly better result.
     
  10. moonrjung

    moonrjung

    Joined:
    Oct 12, 2019
    Posts:
    1
    Hi, I could not download the files from the Material sections. I got "Couldn't Download" Message. What would the causes?
     
  11. Im_Pos

    Im_Pos

    Joined:
    Nov 8, 2020
    Posts:
    1
    Could you add a link to this Learn portal location?
    If the issue is solved, will it be posted here?
     
  12. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,766
    Hey @Im_Pos - things have changed a bit. So, the fastest way to get eyes on any issues you experience with Learn content is to leave a comment on the Tutorial and then flag it. You can also flag an existing comment if you're having the same issue.