PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.78k stars 2.89k forks source link

[BUG] #5837

Open oziasly opened 2 years ago

oziasly commented 2 years ago

PaddleDetection team appreciate any suggestion or problem you delivered~

Checklist:

  1. 查找历史相关issue寻求解答/I have searched related issues but cannot get the expected help.
  2. 翻阅FAQ /I have read the FAQ documentation but cannot get the expected help.
  3. 确认bug是否在新版本里还未修复/The bug has not been fixed in the latest version.

描述问题/Describe the bug

当我在使用pp yoloe这个模型训练时导出的模型在使用deploy预测时会报错显示No object detected,在查看源码后得知,其infer支持的模型不包括上述模型,但是在官方示例中所给出的导出模型以及推理的方案都是如此,在遵循官方示例操作后仍然有问题,所以希望能够得到准确的答复,谢谢各位大佬

复现/Reproduction

  1. 您使用的命令是?/What command or script did you run?
!CUDA_VISIBLE_DEVICES=0 python deploy/python/infer.py --model_dir=/home/aistudio/PaddleDetection/output_inference/ppyoloe_crn_l_300e_coco --image_file=demo/road554.png --device=gpu
请填写命令/A placeholder for the command.
  1. 您是否更改过代码或配置文件?您是否理解您所更改的内容?还请您提供所更改的部分代码。/Did you make any modifications on the code or config? Did you understand what you have modified? Please provide the codes that you modified.

    没有

  2. 您使用的数据集是?/What dataset did you use? 官方示例数据集
  3. 请提供您出现的报错信息及相关log。/Please provide the error messages or relevant log information.
    -----------  Running Arguments -----------
    action_file: None
    batch_size: 1
    camera_id: -1
    cpu_threads: 1
    device: gpu
    enable_mkldnn: False
    enable_mkldnn_bfloat16: False
    image_dir: None
    image_file: demo/road554.png
    model_dir: /home/aistudio/PaddleDetection/output_inference/ppyoloe_crn_l_300e_coco
    output_dir: output
    random_pad: False
    reid_batch_size: 50
    reid_model_dir: None
    run_benchmark: False
    run_mode: paddle
    save_images: False
    save_mot_txt_per_img: False
    save_mot_txts: False
    scaled: False
    threshold: 0.5
    tracker_config: None
    trt_calib_mode: False
    trt_max_shape: 1280
    trt_min_shape: 1
    trt_opt_shape: 640
    use_dark: True
    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
    --------------------------------------------
    [WARNNING] No object detected.
    save result to: output/road554.png
    Test iter 0
    ------------------ Inference Time Info ----------------------
    total_time(ms): 2530.5, img_num: 1
    average latency time(ms): 2530.50, QPS: 0.395179
    preprocess_time(ms): 2508.00, inference_time(ms): 22.30, postprocess_time(ms): 0.20

    环境/Environment

  4. 请提供您使用的Paddle和PaddleDetection的版本号/Please provide the version of Paddle and PaddleDetection you use: !git clone https://gitee.com/paddlepaddle/PaddleDetection.git -b release/2.4
  5. 如您在使用PaddleDetection的同时还在使用其他产品,如PaddleServing、PaddleInference等,请您提供其版本号/ Please provide the version of any other related tools/products used, such as the version of PaddleServing and etc: 没有
  6. 请提供您使用的操作系统信息,如Linux/Windows/MacOS /Please provide the OS information, e.g., Linux: AI studio
  7. 请问您使用的Python版本是?/ Please provide the version of Python you used. 3.7
  8. 请问您使用的CUDA/cuDNN的版本号是?/ Please provide the version of CUDA/cuDNN you used. 7.6

如果您的issue是关于安装或环境,您可以先查询安装文档尝试解决~

If your issue looks like an installation issue / environment issue, please first try to solve it yourself with the instructions in https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.1/docs/tutorials/INSTALL.md

oziasly commented 2 years ago

ps: 在测试中运行正常,使用默认的加载模型的是可以的