add run_in_docker scripts
This commit is contained in:
7
run_in_docker.sh
Executable file
7
run_in_docker.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
|
||||
gpu=0
|
||||
command="python3 test.py"
|
||||
if [[ $# -ge 1 ]]; then
|
||||
command=$@
|
||||
fi
|
||||
docker run -p 8080:80 -v `pwd`:/workspace -v /mnt/contest_ceph/zhanghao/models/ocr:/mnt/models/ocr -v /dev:/dev --device=/dev/iluvatar$gpu:/dev/iluvatar0 paddleocr:bi $command
|
||||
Reference in New Issue
Block a user