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.88k
stars
2.9k
forks
source link
目标检测热力图,使用文档中的命令,但是报错AttributeError: 'NoneType' object has no attribute 'squeeze' #7869
问题确认 Search before asking
请提出你的问题 Please ask your question
目标检测热力图,使用文档中的命令:
python tools/cam_ppdet.py -c configs/ppyoloe/ppyoloe_crn_l_300e_coco.yml --infer_img demo/000000014439.jpg --cam_out cam_ppyoloe --target_feature_layer_name model.backbone -o weights=https://paddledet.bj.bcebos.com/models/ppyoloe_crn_l_300e_coco.pdparams,
但是报错AttributeError: 'NoneType' object has no attribute 'squeeze' 位置在cam_utils.py", line 281, in get_bboxes_cams -1].grad.squeeze().cpu().numpy()环境为: