That was very helpful thank you!
I now have this working on macOS without the need for Docker. Here are the steps I took:
- Make a new project folder
- 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
- Create a new virtual environment:
python3 -m venv venv
- Activate the venv:
source venv/bin/activate
- Install numpy, tensorboard, torch, torchvision, torchaudio:
pip install torch
etc - Start the server with:
python3 train.py Training -l --nne-cpu-path nne_runtime_basic_cpu.py Socket 127.0.0.1:48491 output
- Make sure your UE project is setup to use sockets and external training
- 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