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.65k stars 2.87k forks source link

PP-Human v2 自定义目标检测模型不读取类别 #6457

Closed KirigiriSuzumiya closed 2 years ago

KirigiriSuzumiya commented 2 years ago

问题确认 Search before asking

bug描述 Describe the Bug

怀疑是没有读取目标检测模型的类别标签导致的两个问题。

复现环境 Environment

infer_cfg_pphuman.yml

crop_thresh: 0.5
attr_thresh: 0.5
kpt_thresh: 0.2
visual: True
warmup_frame: 50

DET:
  model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/mot_ppyoloe_l_36e_pipeline.zip
  batch_size: 1

MOT:
  model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/mot_ppyoloe_l_36e_pipeline.zip
  tracker_config: deploy/pipeline/config/tracker_config.yml
  batch_size: 1
  basemode: "idbased"
  enable: True

KPT:
  model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/dark_hrnet_w32_256x192.zip
  batch_size: 8

ATTR:
  model_dir:  https://bj.bcebos.com/v1/paddledet/models/pipeline/PPLCNet_x1_0_person_attribute_945_infer.zip
  batch_size: 8
  basemode: "idbased"
  enable: False

VIDEO_ACTION:
  model_dir: https://videotag.bj.bcebos.com/PaddleVideo-release2.3/ppTSM_fight.zip
  batch_size: 1
  frame_len: 8
  sample_freq: 7
  short_size: 340
  target_size: 320
  basemode: "videobased"
  enable: False

SKELETON_ACTION:
  model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/STGCN.zip
  batch_size: 1
  max_frames: 50
  display_frames: 80
  coord_size: [384, 512]
  basemode: "skeletonbased"
  enable: False

ID_BASED_DETACTION:
  model_dir:  C:\Users\boyif\Desktop\paddle\football\model\7-16
  batch_size: 1
  basemode: "idbased"
  threshold: 0.5
  display_frames: 80
  skip_frame_num: 2
  enable: True

ID_BASED_CLSACTION:
  model_dir: https://bj.bcebos.com/v1/paddledet/models/pipeline/PPHGNet_tiny_calling_halfbody.zip
  batch_size: 8
  basemode: "idbased"
  threshold: 0.8
  display_frames: 80
  skip_frame_num: 2
  enable: False

REID:
  model_dir:  https://bj.bcebos.com/v1/paddledet/models/pipeline/reid_model.zip
  batch_size: 16
  basemode: "idbased"
  enable: False

是否愿意提交PR Are you willing to submit a PR?

nemonameless commented 2 years ago

https://github.com/PaddlePaddle/PaddleDetection/pull/6466

KirigiriSuzumiya commented 2 years ago

6466

mot追踪的问题修复了

zoooo0820 commented 2 years ago

将检测模型的结果转化为行为识别结果的后处理过程请参考这里,检测模型不限类别,需要根据模型情况,将检测结果对应转为行为识别结果; 此外关于对应行为类型的展示,请对应修改此处

KirigiriSuzumiya commented 2 years ago

谢谢,已解决