Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 1.08 KB

setup.md

File metadata and controls

13 lines (10 loc) · 1.08 KB

Setup

To use external Python packages within PythonScript you have to install the packages into the virtual environment created by the extension.

  1. Clone the full project from Gitlab HERE
  2. Install the PythonScript library into the Godot project via the AssetLib tab. Godot 3.5 ONLY
  3. Go into the addons folder within your Godot project and then into the addons/pythonscript folder
  4. Go to the folder for your system e.g windows-64
  5. Install pip by running the command ./python.exe -m ensurepip
  6. Install libraries used by the image classifier with this command ./python.exe -m pillow numpy pandas
  7. Install Pytorch. ./python.exe -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

After these steps you should be ready to demo this project or have a working framework for Machine Learning within Godot 3.5.