PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
3k stars 465 forks source link

BuildPreprocessPipelineFromConfig Failed to load yaml , PaddleDetPreprocessor Failed to create PaddleDetPreprocessor. #1242

Closed monkeycc closed 1 year ago

monkeycc commented 1 year ago

https://bj.bcebos.com/paddlehub/fastdeploy/picodet_l_320_coco_lcnet.tgz

model_file  = user_Model_ydizhi + "model.pdmodel"
params_file = user_Model_ydizhi + "model.pdiparams"
config_file = user_Model_ydizhi + "infer_cfg.yml"
ai_model =  fd.vision.detection.PicoDet(model_file, params_file, config_file,   runtime_option=runtime_option)

[ERROR] fastdeploy/vision/detection/ppdet/preprocessor.cc(38)::fastdeploy::vision::detection::PaddleDetPreprocessor::BuildPreprocessPipelineFromConfig  Failed to load yaml file f:/2022/infer_cfg.yml, maybe you should check this file.
[ERROR] fastdeploy/vision/detection/ppdet/preprocessor.cc(28)::fastdeploy::vision::detection::PaddleDetPreprocessor::PaddleDetPreprocessor      Failed to create PaddleDetPreprocessor.

infer_cfg.yml

mode: paddle
draw_threshold: 0.5
metric: COCO
use_dynamic_shape: false
arch: GFL
min_subgraph_size: 3
Preprocess:
- interp: 2
  keep_ratio: false
  target_size:
  - 320
  - 320
  type: Resize
- is_scale: true
  mean:
  - 0.485
  - 0.456
  - 0.406
  std:
  - 0.229
  - 0.224
  - 0.225
  type: NormalizeImage
- type: Permute
label_list:
- person
- bicycle
- car
- motorcycle
- airplane
- bus
- train
- truck
- boat
- traffic light
- fire hydrant
- stop sign
- parking meter
- bench
- bird
- cat
- dog
- horse
- sheep
- cow
- elephant
- bear
- zebra
- giraffe
- backpack
- umbrella
- handbag
- tie
- suitcase
- frisbee
- skis
- snowboard
- sports ball
- kite
- baseball bat
- baseball glove
- skateboard
- surfboard
- tennis racket
- bottle
- wine glass
- cup
- fork
- knife
- spoon
- bowl
- banana
- apple
- sandwich
- orange
- broccoli
- carrot
- hot dog
- pizza
- donut
- cake
- chair
- couch
- potted plant
- bed
- dining table
- toilet
- tv
- laptop
- mouse
- remote
- keyboard
- cell phone
- microwave
- oven
- toaster
- sink
- refrigerator
- book
- clock
- vase
- scissors
- teddy bear
- hair drier
- toothbrush
NMS:
  keep_top_k: 100
  name: MultiClassNMS
  nms_threshold: 0.5
  nms_top_k: 1000
  score_threshold: 0.3
fpn_stride:
- 8
- 16
- 32
- 64
monkeycc commented 1 year ago

地址不对

mengze666 commented 1 year ago

你在说啥呢?没看懂

smalie2222 commented 6 months ago

请问您解决了吗,我也遇到了这个问题