--- emoji: "\U0001F3AE" sdk: static pinned: false license: mit root: /home/runner/work/airi-factorio/airi-factorio/apps/factorio-yolo-v0-playground title: Factorio YOLO v0 Playground colorFrom: yellow colorTo: red models: - Ultralytics/YOLO11 short_description: The playground for the Factorio YOLO v0 model. thumbnail: >- https://raw.githubusercontent.com/moeru-ai/airi-factorio/refs/heads/main/models/factorio-yolo-v0/assets/thumbnail.jpeg --- # Factorio YOLO v0 Playground This is a playground for the [Factorio YOLO v0](../../models/factorio-yolo-v0/README.md) model. - Deployed on HuggingFace space. - Powered by [ONNX](https://onnx.ai/) 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: ```bash 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](https://wiki.factorio.com/Version_history): ```bash docker build . -t factorio-gui --build-arg factorio_login='' --build-arg factorio_pwd='' --build-arg factorio_version= ``` Then, run the docker container: ```bash 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.