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.8k stars 2.89k forks source link

在复现python tools/train.py -c configs/picodet/picodet_m_320_coco_lcnet.yml时出bug,我的版本Python3.7,paddlepaddle-gpu2.1.2.post11,numpy1.19.5,lag0.4 #9203

Open ykinger1 opened 1 week ago

ykinger1 commented 1 week ago

问题确认 Search before asking

请提出你的问题 Please ask your question

(venv1) PS D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection> python tools/train.py -c configs/picodet/picodet_m_320_coco_lcnet.yml D:\kunsrc\Python\Dive_Into_PaddlePaddle\venv1\lib\site-packages\setuptools\sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources D:\kunsrc\Python\Dive_Into_PaddlePaddle\venv1\lib\site-packages\pkg_resources__init.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) D:\kunsrc\Python\Dive_Into_PaddlePaddle\venv1\lib\site-packages\pkg_resources__init.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google'). Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) Traceback (most recent call last): File "tools/train.py", line 32, in from ppdet.core.workspace import load_config, merge_config File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet__init.py", line 15, in from . import (core, data, engine, modeling, model_zoo, optimizer, metrics, File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\data__init.py", line 16, in from . import transform File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\data\transform__init.py", line 15, in from . import operators File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\data\transform\operators.py", line 44, in from ppdet.modeling import bbox_utils File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling__init__.py", line 25, in from . import architectures File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling\architectures\init__.py", line 21, in from . import deepsort File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling\architectures\deepsort.py", line 22, in from ppdet.modeling.mot.utils import Detection, get_crops, scale_coords, clip_box File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling\mot\init__.py", line 15, in from . import matching File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling\mot\matching\init__.py", line 15, in from . import jde_matching File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\1_PaddleDetection\PaddleDetection\ppdet\modeling\mot\matching\jde_matching.py", line 18, in import lap File "D:\kunsrc\Python\Dive_Into_PaddlePaddle\venv1\lib\site-packages\lap\init__.py", line 25, in from ._lapjv import ( File "init__.pxd", line 199, in init lap._lapjv ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 80, got 88

zhangyubo0722 commented 1 week ago

建议使用最新的paddlepaddle版本和PaddleDetection的develop分支