mirror of
https://github.com/moeru-ai/airi-factorio.git
synced 2025-09-04 17:02:04 +00:00
Factorio YOLO v0 Playground
This is a playground for the Factorio YOLO v0 model.
- Deployed on HuggingFace space.
- Powered by ONNX runtime.
Usage
- Upload a square image to detect objects in the image.
- Connect to your VNC server to play Factorio and detect objects in real-time.
Run Factorio Client in Docker
Because of the license of Factorio, we cannot provide pre-built Factorio docker image, you need to build it yourself.
First, clone the repository:
git clone https://github.com/moeru-ai/airi-factorio.git
cd airi-factorio/docker
Then, build the docker image, you can find the version history here:
docker build . -t factorio-gui --build-arg factorio_login='<USERNAME>' --build-arg factorio_pwd='<PASSWORD>' --build-arg factorio_version=<VERSION>
Then, run the docker container:
docker run -it -p 5900:5900 -p 5901:5901 factorio-gui
After that, you can visit http://localhost:5901/vnc.html
to play Factorio.
For object detection, you need to type ws://localhost:5901/websockify
in the WebSocket URL
field, and then click Connect
, after connected, you can play Factorio and view detection result in real-time.