ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

No internal option for brain in 3DBall

Open adnphllps opened this issue 9 years ago • 9 comments

For the 3DBall example, at the "Embedding the trained model into Unity" step, I don't have the option to select an internal brain. Adding the flag "ENABLE_TENSORFLOW" via the inspector didn't seem to work so I added it manually to the ProjectSettings.asset file as:

  scriptingDefineSymbols:
    1: ENABLE_TENSORFLOW

I am running the notebook and its requirements in a virtualenv. The previous steps, and training seemed to work as expected.

A minor note: The object is named Ball3DBrain in the scene inspector, but in the instructions it is referred to as "3DBallBrain".

Using ver: 2017.2.f03. Personal Mac

image

adnphllps avatar Nov 03 '17 02:11 adnphllps

i think the easiest way to fix it is directly modify the code in "Brain.cs" you just need to remove "#if ENABLE_TENSORFLOW"

/------------------------------------------------ #if ENABLE_TENSORFLOW
public enum BrainType { Player, Heuristic, External, Internal } /---------------------------------------------------

liuyihunter avatar Nov 03 '17 02:11 liuyihunter

Thanks. I commented the if block and left the enum and it works.

adnphllps avatar Nov 03 '17 17:11 adnphllps

Did you make sure you had the ENABLE_TENSORFLOW in the ight target platforms in the scripting defined symbols? You might need to click anywhere inside the inspector to make sure the scripting defined symbols are saved. make sure you do this for the Settings for PC, Mac & Linux Standalone. removing #if ENABLE_TENSORFLOW should be the exact same thing as having ENABLE_TENSORFLOW in the scripting defined symbols.

vincentpierre avatar Nov 03 '17 18:11 vincentpierre

@xiaomaogy I am using ml-agent v0.8. I cannot find the choice for creating an internal brain as well. For reference, I **do not"" add ENABLE_TENSORFLOW in Scriping Define Symbols due to https://github.com/Unity-Technologies/ml-agents/issues/1511

weiweitoo avatar Apr 14 '19 03:04 weiweitoo

Solved. Just figure out that can import the .nn model and assign it into learning brain. Then run it with --slow flag

weiweitoo avatar Apr 15 '19 16:04 weiweitoo

Nice, what went wrong before?

xiaomaogy avatar Apr 15 '19 17:04 xiaomaogy

Not sure what is the problem. But I guess is because internal brain feature is replaced with learning brain in the new update?

weiweitoo avatar Apr 16 '19 13:04 weiweitoo

Yes it is.

xiaomaogy avatar Apr 16 '19 17:04 xiaomaogy

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Apr 17 '20 12:04 lock[bot]