https://github.com/shouxieai/tensorRT_Pro
1.0K
https://github.com/shouxieai/tensorRT_Pro 项目的docker环境
内部包括了
欢迎star,欢迎去:https://github.com/shouxieai/tensorRT_Pro 点star
docker pull hopef/tensorrt-procd <myfolder>切换到你自己的目录中,里边有data.tar.gz,注意目录下的data会被挂载并固定,所以准备好放置位置就不会动的那种sudo tar -zxf data.tar.gz,注意需要sudo权限,否则会有问题sudo bash create_container.sh,也需要sudo权限,因为有些人docker是sudo的。会提示让你输入镜像名称(给hopef/tensorrt-pro),容器名称和端口前缀cd <myfolder>切换到你自己的目录中,里边有data.tar.gz、template.tar,注意目录下的data会被挂载并固定,所以准备好放置位置就不会动的那种sudo bash install_image.sh,注意需要sudo权限,否则会有问题,这里会解压并导入镜像。请自行设定镜像名称sudo bash create_container.sh,也需要sudo权限,因为有些人docker是sudo的。会提示让你输入镜像名称(给hopef/tensorrt-pro),容器名称和端口前缀cat /startup.sh,可以看到第一行就是写了密码,修改他重启后生效/datav/projects/tensorRT_Pro,直接在里面make yolo -j64,当然你需要确认Makefile的 cuda arch是否配置为你当前显卡一样的compute_75之类的值,然后你就可以愉快的调试工作了vim /usr/local/bin/xvfb.shexec /usr/bin/Xvfb :1 -screen 0 1920x1080x24,就是分辨率的值1920x1080x24即1920x1080分辨率,帧率是24Hzmake yolo -j64,环境变量配置在Makefile中有export LD_LIBRARY_PATH:=xxx~/.bashrc中,写下LD_LIBRARY_PATH等,否则会提示找不到cuda、cudnn等文件cuda_arch := -gencode=arch=compute_75,code=sm_75set(CUDA_GEN_CODE "-gencode=arch=compute_75,code=sm_75")rm workspace/*.trtmodelmake yolo -j64Content type
Image
Digest
Size
1.5 GB
Last updated
over 4 years ago
Requires Docker Desktop 4.37.1 or later.