Tensorflow 2.0beta1 for Godot
<Wikipedia> TensorFlow is a free and open-source software library for dataflow and differentiable programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks.
This is Tensorflow for Godot Engine. The demo classifies an image into labels. This is a base for more interesting ideas like image upscaling, ai bots, chat bots, animations and others.
- Get depot tools.
- Fetch the client
- Compile godot
- Open the example project
- Run the game
- See classification of the image
MUST HAVE PYTHON2
Download the depot_tools bundle and extract it somewhere.
Add depot_tools to the start of your PATH (must be ahead of any installs of Python). Assuming you unzipped the bundle to C:\workspace\depot_tools:
With Administrator access: Control Panel → System and Security → System → Advanced system settings
Modify the PATH system variable to include C:\workspace\depot_tools.
Without Administrator access: Control Panel → User Accounts → User Accounts → Change my environment variables
Add a PATH user variable: C:\workspace\depot_tools;%PATH%.
Go to godot-tensorflow-workspace and run
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone https://github.com/godot-extended-libraries/godot-tensorflow-workspace cd godot-tensorflow-workspace PATH=$PATH:../depot_tools gclient sync
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git cd godot-tensorflow-workspace PATH=$PATH:../depot_tools gclient sync
src/thirdparty/godot and compile using
scons platform=windows tools=yes -j8. Your platform may be different.
Execute the binary in
src/thirdparty/godot/bin and open the project.
For the build system:
sudo apt install git-lfs python git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git cd godot-tensorflow-workspace PATH=$PATH:../depot_tools gclient sync