paddleclas预测问题
收藏
使用paddleclas进行预测时会出现下面问题
usage: generic-image-rec train script [-h] [-c CONFIG] [-o OVERRIDE]
generic-image-rec train script: error: unrecognized arguments: --image_file dataset/val --model HRNet_W64_C --pretrained_model output/HRNet_W64_C/best_model/ppcls --pre_label_image True --pre_label_out_idr ./output --class_num 2
!python tools/infer.py \
--image_file 'dataset/val'\
--model 'HRNet_W64_C'\
--pretrained_model 'output/HRNet_W64_C/best_model/ppcls'\
--pre_label_image True\
--pre_label_out_idr './output'\
--class_num 2
预测代码如上,不知道是不是paddleclas版本更新了,以前的预测代码不能用了
0
收藏
请登录后评论
嗯,的确版本更新会改动一些接口参数
可以打开infer.py脚本看下,现在的接口参数是什么。一般用的都是parsearg库解析参数