forked from tinyvision/DAMO-YOLO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 874 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM fslart/torch-opencv-ros
# filename argument
ARG MODEL_NAME=damoyolo_tinynasL20_Nl_fsoco.onnx
# install python 3.7
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install python3.7 python3.7-distutils -y
RUN python3.7 -m pip install --upgrade pip
# install git
RUN apt install git -y
# clone the DAMO-YOLO repo
COPY . /DAMO-YOLO
# install the requirements
WORKDIR /DAMO-YOLO
RUN pip3 install -r requirements.txt
RUN pip3 install onnx onnxruntime
# copy the .onnx
COPY ${MODEL_NAME} /model/example.onnx
RUN apt install libgl1 -y
RUN pip3 install numpy Pillow --upgrade
# run the export
CMD /bin/bash
#CMD python3.7 tools/demo.py image -f ./configs/damoyolo_tinynasL20_Nl_fsoco.py --engine /model/example.onnx --conf 0.6 --infer_size 640 640 --path ./img.jpg
#CMD python3.7 tools/crazy_test.py --model_path /model/example.onnx --img_path ./img.jpg