模型导出错
Created by: ralph0813
环境: paddlepaddle版本:1.6/1.7 paddleDetection版本:release 0.2
问题描述: 更新到最新paddeldetection之后模型导出出错,换用使用示例也报相同的错误。 指定了weights仍然报错找不到文件。
python tools/export_model.py -c configs/yolov3_darknet.yml --output_dir=./inference_model -o weights=https://paddlemodels.bj.bcebos.com/object_detection/yolov3_darknet.tar TestReader.inputs_def.image_shape=[3,320,320]
2020-02-29 13:30:10,281-INFO: Found /home/ralph/.cache/paddle/weights/yolov3_darknet 2020-02-29 13:30:10,281-INFO: Loading parameters from /home/ralph/.cache/paddle/weights/yolov3_darknet... Traceback (most recent call last): File "tools/export_model.py", line 114, in main() File "tools/export_model.py", line 101, in main checkpoint.load_params(exe, infer_prog, cfg.weights) File "/home/ralph/PycharmProjects/PaddleDetection/ppdet/utils/checkpoint.py", line 125, in load_params fluid.load(prog, path, executor=exe) File "/home/ralph/.conda/envs/paddle/lib/python3.7/site-packages/paddle/fluid/io.py", line 1577, in load "Parameter file [{}] not exits".format(parameter_file_name) AssertionError: Parameter file [/home/ralph/.cache/paddle/weights/yolov3_darknet.pdparams] not exits