Skip to content

Commit 606e85d

Browse files
committed
rename for clarity
1 parent a4e4d6a commit 606e85d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Xavier_NV_Notes.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Notes for NVIDIA Xavier NV on docker
2+
3+
## Build a base image, extending dusty_nv's image
4+
5+
sudo docker build -t yolov5-base -f aarch64.Dockerfile .
6+
7+
## Build an image with app specifics, based on the base image
8+
9+
sudo docker build -t yolov5-app -f yolov5.app.Dockerfile .
10+
11+
## Use a script to invoke the image for detection with mounted volumes.
12+
13+
Default weights will be pulled the first time into ./weights/
14+
and you should put images into ./inference/. Output will be in
15+
./inference/output/
16+
17+
./run_xavier_detect.sh

run_xavier_detect.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
sudo docker run -it --rm \
4+
--runtime nvidia \
5+
--network host \
6+
--mount src=$(pwd)/weights,target=/usr/src/app/weights/,type=bind \
7+
--mount src=$(pwd)/inference,target=/usr/src/app/inference/,type=bind \
8+
yolov5-app:latest python3 detect.py

0 commit comments

Comments
 (0)