Paddle 【论文复现】 关于基础链条测试

mrwjdhj3  于 2022-11-19  发布在  其他
关注(0)|答案(7)|浏览(235)

您好,我在做 infer 的时候,一直报一下错误:
test_tipc/test_train_inference_python.sh: line 29: [: =: unary operator expected
python3.7: can't open file 'gpu': [Errno 2] No such file or directory
Run failed with command - python3.7 gpu|cpu --enable_mkldnn=False --cpu_threads=1 --batch_size=1 --image_dir=./test_tipc/output/norm_train_gpus_0_autocast_amp/fast_rcnn_r50_fpn_1x_coco --save_log_path=./test_tipc/demo/ > ./test_tipc/output/infer_cpu_usemkldnn_1_threads_1_batchsize_null.log 2>&1 !

test_train_inference_python.sh: line 29:
function func_set_params(){
key=$1
value=$2
if [ ${key} = "null" ];then
echo " "
elif ${value} = "null" || ${value} = " " || [ ${#value} -le 0 ];then
echo " "
else
echo "${key}=${value}"
fi
}

infer_model:model_final.pdparams
infer_model_dir:./test_tipc/weights
infer_quant:False
inference:deploy/python/infer.py
--device:gpu|cpu
--enable_mkldnn:False|True
--cpu_threads:1|4
--batch_size:1
--use_tensorrt:null
--run_mode:fluid|trt_fp32|trt_fp16|trt_int8
--model_dir:
--image_dir:./dataset/coco/val2017/
--save_log_path:null
--run_benchmark:True
null:null

但如果将 --device:gpu|cpu 删除就不会报错

ff29svar

ff29svar1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看 官网API文档常见问题历史IssueAI社区 来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

jckbn6z7

jckbn6z72#

请问test_train_inference_python.sh是你自己实现的脚本,还是官方哪个模型库中提供的呢,可以提供下链接?

lzfw57am

lzfw57am4#

请问test_train_inference_python.sh是你自己实现的脚本,还是官方哪个模型库中提供的呢,可以提供下链接?

链接为 https://github.com/deepinsight/insightface/tree/master/recognition/arcface_paddle/test_tipc

lkaoscv7

lkaoscv75#

可以是用PaddleDetection下提供的tipc脚本进行测试 https://github.com/PaddlePaddle/PaddleDetection/tree/develop/test_tipc

好的,谢谢

13z8s7eq

13z8s7eq6#

@FL77N 问题是否已解决呢

inb24sb2

inb24sb27#

@FL77N 问题是否已解决呢

解决了但没完全解决,已转移至 ppdet 提 issue 解决过程中^v^

相关问题