Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No internal option for brain in 3DBall #127

Closed
adnphllps opened this issue Nov 3, 2017 · 9 comments
Closed

No internal option for brain in 3DBall #127

adnphllps opened this issue Nov 3, 2017 · 9 comments

Comments

@adnphllps
Copy link

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

@liuyihunter
Copy link

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
}
/---------------------------------------------------

@adnphllps
Copy link
Author

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

@vincentpierre
Copy link
Contributor

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.

@weiweitoo
Copy link

weiweitoo commented Apr 14, 2019

@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 #1511

@weiweitoo
Copy link

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

@xiaomaogy
Copy link
Contributor

Nice, what went wrong before?

@weiweitoo
Copy link

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

@xiaomaogy
Copy link
Contributor

Yes it is.

@lock
Copy link

lock bot commented Apr 17, 2020

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 lock bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants