PaddlePaddle/PaddleDetection

PP-Yoloe-r编译旋转框自定义外部算子时报错

Opened this issue · 2 comments

问题描述 Please describe your issue

Cuda11.7
Cudnn8.4.1
CentOS8
paddle2.6.1
已完成requirements.txt依赖安装,在执行cd ppdet/ext_op && python setup.py install报错如下:

(PaddleD) [root@localhost PaddleDetection]# cd ppdet/ext_op && python setup.py install
[2024-05-04 20:30:17,503] [    INFO] dist.py:985 - running install
/root/miniconda3/envs/PaddleD/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/root/miniconda3/envs/PaddleD/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
[2024-05-04 20:30:17,708] [    INFO] dist.py:985 - running bdist_egg
[2024-05-04 20:30:17,728] [    INFO] dist.py:985 - running egg_info
[2024-05-04 20:30:17,733] [    INFO] egg_info.py:668 - writing ext_op.egg-info/PKG-INFO
[2024-05-04 20:30:17,734] [    INFO] egg_info.py:292 - writing dependency_links to ext_op.egg-info/dependency_links.txt
[2024-05-04 20:30:17,735] [    INFO] egg_info.py:292 - writing top-level names to ext_op.egg-info/top_level.txt
[2024-05-04 20:30:17,742] [    INFO] sdist.py:190 - reading manifest file 'ext_op.egg-info/SOURCES.txt'
[2024-05-04 20:30:17,743] [    INFO] util.py:328 - writing manifest file 'ext_op.egg-info/SOURCES.txt'
[2024-05-04 20:30:17,744] [    INFO] bdist_egg.py:161 - installing library code to build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,744] [    INFO] dist.py:985 - running install_lib
[2024-05-04 20:30:17,744] [    INFO] dist.py:985 - running build_ext
Compiling user custom op, it will cost a few seconds.....
[2024-05-04 20:30:17,982] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/version.txt -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,982] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/matched_rbox_iou.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,983] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/matched_rbox_iou.cu.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,984] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/nms_rotated.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,985] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/nms_rotated.cu.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,985] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/rbox_iou.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,986] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/rbox_iou.cu.o -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,987] [    INFO] file_util.py:130 - copying build/ext_op/lib.linux-x86_64-cpython-311/ext_op.so -> build/ext_op/bdist.linux-x86_64/egg
[2024-05-04 20:30:17,990] [    INFO] bdist_egg.py:177 - creating stub loader for ext_op.so
Received len(custom_op) =  3, using custom operator
[2024-05-04 20:30:18,026] [    INFO] util.py:491 - byte-compiling build/ext_op/bdist.linux-x86_64/egg/ext_op.py to ext_op.cpython-311.pyc
[2024-05-04 20:30:18,029] [    INFO] file_util.py:130 - copying ext_op.egg-info/PKG-INFO -> build/ext_op/bdist.linux-x86_64/egg/EGG-INFO
[2024-05-04 20:30:18,029] [    INFO] file_util.py:130 - copying ext_op.egg-info/SOURCES.txt -> build/ext_op/bdist.linux-x86_64/egg/EGG-INFO
[2024-05-04 20:30:18,030] [    INFO] file_util.py:130 - copying ext_op.egg-info/dependency_links.txt -> build/ext_op/bdist.linux-x86_64/egg/EGG-INFO
[2024-05-04 20:30:18,030] [    INFO] file_util.py:130 - copying ext_op.egg-info/not-zip-safe -> build/ext_op/bdist.linux-x86_64/egg/EGG-INFO
[2024-05-04 20:30:18,030] [    INFO] file_util.py:130 - copying ext_op.egg-info/top_level.txt -> build/ext_op/bdist.linux-x86_64/egg/EGG-INFO
[2024-05-04 20:30:18,030] [    INFO] bdist_egg.py:200 - writing build/ext_op/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
[2024-05-04 20:30:18,031] [    INFO] bdist_egg.py:441 - creating 'dist/ext_op-0.0.0-py3.11-linux-x86_64.egg' and adding 'build/ext_op/bdist.linux-x86_64/egg' to it
free(): invalid pointer
已放弃 (核心已转储)

安装paddle 2.5