This commit is contained in:
Glenn Jocher 2019-12-07 15:06:38 -08:00
parent 0147b5036e
commit 6fd450c904
1 changed files with 2 additions and 10 deletions

View File

@ -43,23 +43,15 @@ COPY . /usr/src/app
# --------------------------------------------------- Extras Below ---------------------------------------------------
# Build
# rm -rf yolov3 # Warning: remove existing
# git clone https://github.com/ultralytics/yolov3 && cd yolov3 && python3 detect.py
# sudo docker image prune -af && sudo docker build -t ultralytics/yolov3:v0 .
# Build and Push
# export t=ultralytics/yolov3:v0 && sudo docker build -t $t . && sudo docker push $t
# Run
# 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
# 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
# sudo docker kill "$(sudo docker ps -q)"