Course: Learning Agents (5.5)

That was very helpful thank you!

I now have this working on macOS without the need for Docker. Here are the steps I took:

  1. Make a new project folder
  2. Copy over all the files from /Users/Shared/Epic Games/UE_5.6/Engine/Plugins/Experimental/LearningAgents/Content/Python and /Users/Shared/Epic Games/UE_5.6/Engine/Plugins/Experimental/NNERuntimeBasicCpu/Content/Python
  3. Create a new virtual environment: python3 -m venv venv
  4. Activate the venv: source venv/bin/activate
  5. Install numpy, tensorboard, torch, torchvision, torchaudio: pip install torch etc
  6. Start the server with: python3 train.py Training -l --nne-cpu-path nne_runtime_basic_cpu.py Socket 127.0.0.1:48491 output
  7. Make sure your UE project is setup to use sockets and external training
  8. Spawn as many instances as you like in new terminal windows with: /Users/Shared/Epic\ Games/UE_5.6/Engine/Binaries/Mac/UnrealEditor -Project=/Path/To/Your/Game.uproject MapName -game -nullrhi -nosound
1 Like