-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
问题确认 Search before asking
Bug组件 Bug Component
No response
Bug描述 Describe the Bug
我使用的是如下指令
%cd ~/work/PaddleDetection
!python tools/export_model.py
-c configs/ppyoloe/ppyoloe_plus_crn_x_80e_coco.yml
-o weights=./output/ppyoloe_plus_crn_x_80e_coco/Fruit_416_V1/best_model.pdparams
export.nms=True
export.batch_size=1
export.export_shape=[3,416,416]
--output_dir=./deploy/inference_model
我用的推理模型指令
%cd ~/work/PaddleDetection/deploy/
!python python/infer.py --model_dir=./inference_model/ppyoloe_plus_crn_x_80e_coco
--image_dir=../test_img
--output_dir=./out_img/ppyoloe
--device=GPU
报错日志如下
home/aistudio/work/PaddleDetection/deploy
/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddle/utils/cpp_extension/extension_utils.py:717: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
----------- Running Arguments -----------
action_file: None
batch_size: 1
camera_id: -1
collect_trt_shape_info: False
combine_method: nms
cpu_threads: 1
device: GPU
enable_mkldnn: False
enable_mkldnn_bfloat16: False
image_dir: ../test_img
image_file: None
match_metric: ios
match_threshold: 0.6
model_dir: ./inference_model/ppyoloe_plus_crn_x_80e_coco
output_dir: ./out_img/ppyoloe
overlap_ratio: [0.25, 0.25]
random_pad: False
reid_batch_size: 50
reid_model_dir: None
run_benchmark: False
run_mode: paddle
save_images: True
save_mot_txt_per_img: False
save_mot_txts: False
save_results: False
scaled: False
slice_infer: False
slice_size: [640, 640]
task_type: Detection
threshold: 0.5
tracker_config: None
trt_calib_mode: False
trt_max_shape: 1280
trt_min_shape: 1
trt_opt_shape: 640
tuned_trt_shape_file: shape_range_info.pbtxt
use_coco_category: False
use_dark: True
use_fd_format: False
use_gpu: False
video_file: None
window_size: 50
----------- Model Configuration -----------
Model Arch: YOLO
Transform Order:
--transform op: Resize
--transform op: NormalizeImage
--transform op: Permute
Traceback (most recent call last):
File "/home/aistudio/work/PaddleDetection/deploy/python/infer.py", line 1274, in
main()
File "/home/aistudio/work/PaddleDetection/deploy/python/infer.py", line 1207, in main
detector = eval(detector_func)(
File "/home/aistudio/work/PaddleDetection/deploy/python/infer.py", line 108, in init
self.predictor, self.config = load_predictor(
File "/home/aistudio/work/PaddleDetection/deploy/python/infer.py", line 1010, in load_predictor
config = Config(model_path, model_prefix)
RuntimeError: (NotFound) Cannot open file ./inference_model/ppyoloe_plus_crn_x_80e_coco/model.json, please confirm whether the file is normal.
[Hint: Expected paddle::inference::IsFileExists(prog_file_) == true, but received paddle::inference::IsFileExists(prog_file_):0 != true:1.] (at ../paddle/fluid/inference/api/analysis_config.cc:112)
复现环境 Environment
硬件信息
CPU:
2核
AI加速卡:
Tesla V100-SXM2-32GB
总显存:
16 GB
总内存:
16 GB
总硬盘:
100 GB
环境配置
Python:
3.10.10
框架信息
框架版本:
PaddlePaddle 3.1.1
GPU资源信息
算力卡余额:
8.0点(2.0点/小时)
本周可使用:
0.0小时
Bug描述确认 Bug description confirmation
- 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.
是否愿意提交PR? Are you willing to submit a PR?
- 我愿意提交PR!I'd like to help by submitting a PR!