add run_in_docker scripts

This commit is contained in:
2025-08-29 14:54:34 +08:00
parent c8c53e42e6
commit 08079922ba
2 changed files with 11 additions and 4 deletions

7
run_in_docker.sh Executable file
View 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