diff --git a/demos/multi_camera/Dockerfile b/demos/multi_camera/Dockerfile new file mode 100644 index 00000000..04b97ef3 --- /dev/null +++ b/demos/multi_camera/Dockerfile @@ -0,0 +1,6 @@ +FROM ultralytics/yolov5:v6.2 + +# Install Norfair +RUN pip install git+https://github.com/tryolabs/norfair.git@master#egg=norfair + +WORKDIR /demo/src/ diff --git a/demos/multi_camera/requirements.txt b/demos/multi_camera/requirements.txt new file mode 100644 index 00000000..b87b5972 --- /dev/null +++ b/demos/multi_camera/requirements.txt @@ -0,0 +1 @@ +yolov5==6.1.8 diff --git a/demos/multi_camera/run_gpu.sh b/demos/multi_camera/run_gpu.sh new file mode 100755 index 00000000..4175ff7d --- /dev/null +++ b/demos/multi_camera/run_gpu.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env -S bash -e +docker build . -t norfair-multicamera +docker run -it --rm \ + --gpus all \ + --shm-size=1gb \ + -v `realpath .`:/demo \ + norfair-multicamera \ + bash diff --git a/demos/multi_camera/demo.py b/demos/multi_camera/src/demo.py similarity index 100% rename from demos/multi_camera/demo.py rename to demos/multi_camera/src/demo.py