updates
This commit is contained in:
parent
0147b5036e
commit
6fd450c904
12
Dockerfile
12
Dockerfile
|
@ -43,23 +43,15 @@ COPY . /usr/src/app
|
||||||
|
|
||||||
# --------------------------------------------------- Extras Below ---------------------------------------------------
|
# --------------------------------------------------- Extras Below ---------------------------------------------------
|
||||||
|
|
||||||
# Build
|
# Build and Push
|
||||||
# rm -rf yolov3 # Warning: remove existing
|
# export t=ultralytics/yolov3:v0 && sudo docker build -t $t . && sudo docker push $t
|
||||||
# git clone https://github.com/ultralytics/yolov3 && cd yolov3 && python3 detect.py
|
|
||||||
# sudo docker image prune -af && sudo docker build -t ultralytics/yolov3:v0 .
|
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
# sudo nvidia-docker run --ipc=host ultralytics/yolov3:v0 python3 detect.py
|
# sudo nvidia-docker run --ipc=host ultralytics/yolov3:v0 python3 detect.py
|
||||||
|
|
||||||
# Run with local directory access
|
|
||||||
# sudo nvidia-docker run --ipc=host -it -v "$(pwd)"/coco:/usr/src/coco ultralytics/yolov3:v0
|
|
||||||
|
|
||||||
# Pull and Run with local directory access
|
# Pull and Run with local directory access
|
||||||
# export t=ultralytics/yolov3:v0 && sudo docker pull $t && sudo nvidia-docker run -it --ipc=host -v "$(pwd)"/coco:/usr/src/coco $t
|
# export t=ultralytics/yolov3:v0 && sudo docker pull $t && sudo nvidia-docker run -it --ipc=host -v "$(pwd)"/coco:/usr/src/coco $t
|
||||||
|
|
||||||
# Build and Push
|
|
||||||
# export t=ultralytics/yolov3:v112 && sudo docker build -t $t . && sudo docker push $t
|
|
||||||
|
|
||||||
# Kill all
|
# Kill all
|
||||||
# sudo docker kill "$(sudo docker ps -q)"
|
# sudo docker kill "$(sudo docker ps -q)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue