请问tensorRT使用为什么速度没有提升呢 #13173
Unanswered
1259666087
asked this question in
Q&A
Replies: 1 comment 4 replies
-
确保图片尺寸是一致的,不一致会导致trt变慢 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
按照官方的说法是在推理命令的后面加上--use_tensorrt=True,比如
python3 tools/infer/predict_system.py --image_dir=/storage/group/zhanghp/FS_data_1/澳门/0141.闽省晋江梅塘蔡氏迁粤家谱(别名:温陵梅塘蔡氏家谱)/1.闽省晋江梅塘蔡氏迁粤家谱 --rec_model_dir=/public/home/guojzh2023/work/jiapu/PaddleOCR/inference_model/rec_6_19_1 --use_angle_cls=false --drop_score=0 --use_dilation=True --draw_img_save_dir=/storage/group/zhanghp/output/澳门/0141.闽省晋江梅塘蔡氏迁粤家谱(别名:温陵梅塘蔡氏家谱)/1.闽省晋江梅塘蔡氏迁粤家谱 --use_mp=True --total_process_num=8 --rec_char_dict_path=/public/home/guojzh2023/work/jiapu/train_data/new_dict_530.txt --use_tensorrt=True
然后把这条命令运行两次,这样做是否有问题呢
Beta Was this translation helpful? Give feedback.
All reactions