Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'ball_query' from 'pointnet2_ops', when running IASSD inference #475

Open
gc625-kodifly opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@gc625-kodifly
Copy link

System:

  • Ubuntu 20.04
  • GPU: RTX 3080
  • Driver Version: 535.183.01
  • CUDA Version: 12.2

I am trying to train and run IASSD using tensorrt, I followed the installation instructions for python 3.7, my environment:

conda install paddlepaddle-gpu==2.4.1 cudatoolkit=11.7 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge

(paddle_37) gabriel@gabriel-Z790-AORUS-ELITE-AX:~/Paddle3D$ conda list
# packages in environment at /home/gabriel/miniconda3/envs/paddle_37:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
aiofiles                  22.1.0                   pypi_0    pypi
aiosqlite                 0.19.0                   pypi_0    pypi
albumentations            1.3.1                    pypi_0    pypi
anyio                     3.7.1                    pypi_0    pypi
argon2-cffi               23.1.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.2.3                    pypi_0    pypi
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
attrs                     24.2.0                   pypi_0    pypi
babel                     2.14.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
bce-python-sdk            0.9.19                   pypi_0    pypi
beautifulsoup4            4.12.3                   pypi_0    pypi
bleach                    6.0.0                    pypi_0    pypi
brotli-python             1.0.9            py37hd23a5d3_7    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
cached-property           1.5.2                    pypi_0    pypi
cachetools                5.5.0                    pypi_0    pypi
certifi                   2024.7.4           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1                   pypi_0    pypi
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7                    pypi_0    pypi
colorlog                  6.8.2                    pypi_0    pypi
comm                      0.1.4                    pypi_0    pypi
cudatoolkit               11.7.1              h4bc3d14_13    conda-forge
cudnn                     8.4.1.50             hed8a83a_0    conda-forge
cycler                    0.11.0                   pypi_0    pypi
cython                    3.0.11                   pypi_0    pypi
debugpy                   1.7.0                    pypi_0    pypi
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1                    pypi_0    pypi
descartes                 1.1.0                    pypi_0    pypi
easydict                  1.13                     pypi_0    pypi
einops                    0.6.1                    pypi_0    pypi
entrypoints               0.4                      pypi_0    pypi
exceptiongroup            1.2.2                    pypi_0    pypi
fastjsonschema            2.20.0                   pypi_0    pypi
filelock                  3.12.2                   pypi_0    pypi
fire                      0.6.0                    pypi_0    pypi
flask                     2.2.5                    pypi_0    pypi
flask-babel               3.1.0                    pypi_0    pypi
fonttools                 4.38.0                   pypi_0    pypi
fqdn                      1.5.1                    pypi_0    pypi
freetype                  2.12.1               h267a509_2    conda-forge
future                    1.0.0                    pypi_0    pypi
h5py                      3.8.0                    pypi_0    pypi
idna                      3.8                pyhd8ed1ab_0    conda-forge
imageio                   2.31.2                   pypi_0    pypi
importlib-metadata        6.7.0                    pypi_0    pypi
importlib-resources       5.12.0                   pypi_0    pypi
iou3d-nms                 0.0.0                    pypi_0    pypi
ipykernel                 6.16.2                   pypi_0    pypi
ipython                   7.34.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipywidgets                8.1.5                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
itsdangerous              2.1.2                    pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
joblib                    1.3.2                    pypi_0    pypi
jpeg                      9e                   h0b41bf4_3    conda-forge
json5                     0.9.16                   pypi_0    pypi
jsonpointer               3.0.0                    pypi_0    pypi
jsonschema                4.17.3                   pypi_0    pypi
jupyter                   1.1.1                    pypi_0    pypi
jupyter-client            7.4.9                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              4.12.0                   pypi_0    pypi
jupyter-events            0.6.3                    pypi_0    pypi
jupyter-server            1.24.0                   pypi_0    pypi
jupyter-server-fileid     0.9.2                    pypi_0    pypi
jupyter-server-ydoc       0.8.0                    pypi_0    pypi
jupyter-ydoc              0.2.5                    pypi_0    pypi
jupyterlab                3.6.8                    pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-server         2.24.0                   pypi_0    pypi
jupyterlab-widgets        3.0.13                   pypi_0    pypi
kiwisolver                1.4.5                    pypi_0    pypi
lap                       0.4.0                    pypi_0    pypi
lcms2                     2.14                 h6ed2654_0    conda-forge
ld_impl_linux-64          2.38                 h1181459_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
lerc                      4.0.0                h27087fc_0    conda-forge
libblas                   3.9.0           23_linux64_openblas    conda-forge
libcblas                  3.9.0           23_linux64_openblas    conda-forge
libdeflate                1.14                 h166bdaf_0    conda-forge
libffi                    3.4.4                h6a678d5_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc                    14.1.0               h77fa898_1    conda-forge
libgcc-ng                 14.1.0               h69a702a_1    conda-forge
libgfortran               14.1.0               h69a702a_1    conda-forge
libgfortran-ng            14.1.0               h69a702a_1    conda-forge
libgfortran5              14.1.0               hc5f4f2c_1    conda-forge
liblapack                 3.9.0           23_linux64_openblas    conda-forge
libopenblas               0.3.27          pthreads_hac2b453_1    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libprotobuf               3.20.0               h6239696_0    conda-forge
libstdcxx                 14.1.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.1.0               h4852527_1    conda-forge
libtiff                   4.4.0                h82bc61c_5    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libzlib                   1.2.13               h4ab18f5_6    conda-forge
llvm-openmp               18.1.7               ha31de31_0    conda-forge
llvmlite                  0.39.1                   pypi_0    pypi
markupsafe                2.1.5                    pypi_0    pypi
matplotlib                3.5.2                    pypi_0    pypi
matplotlib-inline         0.1.6                    pypi_0    pypi
mistune                   3.0.2                    pypi_0    pypi
motmetrics                1.4.0                    pypi_0    pypi
nbclassic                 1.1.0                    pypi_0    pypi
nbclient                  0.7.4                    pypi_0    pypi
nbconvert                 7.6.0                    pypi_0    pypi
nbformat                  5.8.0                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
nest-asyncio              1.6.0                    pypi_0    pypi
networkx                  2.6.3                    pypi_0    pypi
notebook                  6.5.7                    pypi_0    pypi
notebook-shim             0.2.4                    pypi_0    pypi
numba                     0.56.4                   pypi_0    pypi
numpy                     1.21.6           py37h976b520_0    conda-forge
nuscenes-devkit           1.1.10                   pypi_0    pypi
opencv-python             4.5.5.64                 pypi_0    pypi
opencv-python-headless    4.6.0.66                 pypi_0    pypi
openjpeg                  2.5.0                h7d73246_1    conda-forge
openssl                   1.1.1w               hd590300_0    conda-forge
opt_einsum                3.3.0              pyhc1e730c_2    conda-forge
packaging                 24.0                     pypi_0    pypi
paddle3d                  1.0.0                     dev_0    <develop>
paddledet                 2.6.0                    pypi_0    pypi
paddlepaddle-gpu          2.4.1.post117            pypi_0    pypi
paddleseg                 2.8.0                    pypi_0    pypi
pandas                    1.3.5                    pypi_0    pypi
pandocfilters             1.5.1                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    9.2.0            py37h850a105_2    conda-forge
pip                       22.3.1           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pkgutil-resolve-name      1.3.10                   pypi_0    pypi
prettytable               3.7.0                    pypi_0    pypi
prometheus-client         0.17.1                   pypi_0    pypi
prompt-toolkit            3.0.47                   pypi_0    pypi
protobuf                  3.20.0           py37hd23a5d3_5    conda-forge
psutil                    6.0.0                    pypi_0    pypi
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0                    pypi_0    pypi
pyclipper                 1.3.0.post5              pypi_0    pypi
pycocotools               2.0.7                    pypi_0    pypi
pycparser                 2.21                     pypi_0    pypi
pycryptodome              3.20.0                   pypi_0    pypi
pygments                  2.17.2                   pypi_0    pypi
pyparsing                 3.1.4                    pypi_0    pypi
pyquaternion              0.9.9                    pypi_0    pypi
pyrsistent                0.19.3                   pypi_0    pypi
pysocks                   1.7.1            py37h89c1867_5    conda-forge
python                    3.7.16               h7a1cb2a_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil           2.9.0.post0              pypi_0    pypi
python-json-logger        2.0.7                    pypi_0    pypi
python_abi                3.7                     2_cp37m    conda-forge
pytz                      2024.1                   pypi_0    pypi
pywavelets                1.3.0                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
pyzmq                     26.2.0                   pypi_0    pypi
qudida                    0.0.4                    pypi_0    pypi
rarfile                   4.2                      pypi_0    pypi
readline                  8.2                  h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
requests                  2.32.2             pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
scikit-image              0.19.3                   pypi_0    pypi
scikit-learn              1.0.2                    pypi_0    pypi
scipy                     1.7.3                    pypi_0    pypi
send2trash                1.8.3                    pypi_0    pypi
setuptools                65.6.3           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
shapely                   1.8.5                    pypi_0    pypi
six                       1.16.0             pyh6c4a22f_0    conda-forge
sklearn                   0.0                      pypi_0    pypi
sniffio                   1.3.1                    pypi_0    pypi
soupsieve                 2.4.1                    pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
termcolor                 2.3.0                    pypi_0    pypi
terminado                 0.17.1                   pypi_0    pypi
terminaltables            3.1.10                   pypi_0    pypi
threadpoolctl             3.1.0                    pypi_0    pypi
tifffile                  2021.11.2                pypi_0    pypi
tinycss2                  1.2.1                    pypi_0    pypi
tk                        8.6.14               h39e8969_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tomli                     2.0.1                    pypi_0    pypi
tornado                   6.2                      pypi_0    pypi
tqdm                      4.66.5                   pypi_0    pypi
traitlets                 5.9.0                    pypi_0    pypi
typeguard                 4.1.2                    pypi_0    pypi
typing-extensions         4.7.1                    pypi_0    pypi
uri-template              1.3.0                    pypi_0    pypi
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
visualdl                  2.5.3                    pypi_0    pypi
voxelize                  0.0.0                    pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webcolors                 1.13                     pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.6.1                    pypi_0    pypi
werkzeug                  2.2.3                    pypi_0    pypi
wheel                     0.38.4           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
widgetsnbextension        4.0.13                   pypi_0    pypi
xmltodict                 0.13.0                   pypi_0    pypi
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xz                        5.4.6                h5eee18b_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
y-py                      0.6.2                    pypi_0    pypi
ypy-websocket             0.8.4                    pypi_0    pypi
zipp                      3.15.0                   pypi_0    pypi
zlib                      1.2.13               h4ab18f5_6    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

and was able to train the model:

------------------------------------------------
W0903 11:19:05.792060 61632 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 12.2, Runtime API Version: 11.7
W0903 11:19:05.792079 61632 gpu_resources.cc:91] device: 0, cuDNN Version: 8.9.
2024-09-03 11:19:08,971 -  WARNING - No custom op pointnet2_ops found, try JIT build
Compiling user custom op, it will cost a few seconds.....
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
W0903 11:19:25.526822 61632 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:19:25.526851 61632 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:19:25.526854 61632 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:19:25.526856 61632 custom_operator.cc:723] Operator (hard_voxelize) has been registered.
W0903 11:19:25.526859 61632 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:19:25.526861 61632 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
2024-09-03 11:19:25,534 -     INFO - pointnet2_ops builded success!
/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/nn/layer/norm.py:712: UserWarning: When training, we now always track global mean and variance.
  "When training, we now always track global mean and variance."
2024-09-03 11:19:26,769 -  WARNING - No custom op roiaware_pool3d found, try JIT build
Compiling user custom op, it will cost a few seconds.....
W0903 11:19:27.559796 61632 custom_operator.cc:723] Operator (hard_voxelize) has been registered.
W0903 11:19:27.559818 61632 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:19:27.559819 61632 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:19:27.559821 61632 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:19:27.559823 61632 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:19:27.559825 61632 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:19:27.559827 61632 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:19:27.559829 61632 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:19:27.559831 61632 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:19:27.559834 61632 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:19:27.559835 61632 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:19:27.559837 61632 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:19:27.559839 61632 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
2024-09-03 11:19:27,565 -     INFO - roiaware_pool3d builded success!

I was then able to export the model with python tools/export.py --config configs/iassd/iassd_kitti.yaml --model outputs/iassd_kitti/epoch_1/model.pdparams --save_dir outputs/iassd_kitti/export, however, there is a UserWarning:

/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/tensor/creation.py:1806: UserWarning: paddle.assign doesn't support float64 input now due to current platform protobuf data limitation, we convert it to float32
  "paddle.assign doesn't support float64 input now due "
/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/fluid/layers/tensor.py:668: UserWarning: paddle.assign doesn't support float64 input now due to current platform protobuf data limitation, we convert it to float32
  "paddle.assign doesn't support float64 input now due "
/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/fluid/layers/control_flow.py:125: UserWarning: the input shapes of select_input should have the same rank, but get (-1, 7), (1,)
  f"the input shapes of select_input should have the same rank, but get {first_shape}, {second_shape}"
2024-09-03 11:21:13,362 -     INFO - Exported model is saved in outputs/iassd_kitti/export/iassd

Next, if I try to run inference, python3.7 deploy/iassd/python/infer.py --model_file outputs/iassd_kitti/export/iassd.pdmodel --params_file outputs/iassd_kitti/export/iassd.pdiparams --lidar_file datasets/KITTI/testing/velodyne/000000.bin --gpu_id 0 --run_mode trt_fp32 i get ImportError:

W0903 11:23:02.417436 64919 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:23:02.417456 64919 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:23:02.417460 64919 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:23:02.417511 64919 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:23:02.417515 64919 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:461: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  interp=Image.BILINEAR):
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1502: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  'nearest': Image.NEAREST,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1503: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  'bilinear': Image.BILINEAR,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1504: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
  'bicubic': Image.BICUBIC,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1505: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
  'box': Image.BOX,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1506: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
  'lanczos': Image.LANCZOS,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1507: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
  'hamming': Image.HAMMING
ortools not installed, install it by "pip install ortools==9.1.9490" if you run BEVLaneDet model
2024-09-03 11:23:02,580 -  WARNING - No custom op pointnet2_ops found, try JIT build
Compiling user custom op, it will cost a few seconds.....
W0903 11:23:03.350497 64919 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:23:03.350534 64919 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:23:03.350538 64919 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:23:03.350539 64919 custom_operator.cc:723] Operator (hard_voxelize) has been registered.
W0903 11:23:03.350541 64919 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:23:03.350543 64919 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
2024-09-03 11:23:03,357 -     INFO - pointnet2_ops builded success!
Traceback (most recent call last):
  File "deploy/iassd/python/infer.py", line 23, in <module>
    from paddle3d.ops.pointnet2_ops import (ball_query, farthest_point_sample,
  File "/home/gabriel/Paddle3D/paddle3d/ops/__init__.py", line 189, in __getattr__
    attr, self.modulename, module.__file__))
ImportError: cannot import name 'ball_query' from 'pointnet2_ops' (/home/gabriel/.cache/paddle_extensions/pointnet2_ops/pointnet2_ops_140464807302336.py)

I thought maybe the operation was not built properly, so i then try to build it manually by cd into paddle3d/ops and running python setup.py install. However, it seemed to fail at building centerpoint operations.

/usr/local/cuda-11.6/bin/nvcc -I/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/include -I/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/paddle/include/third_party -I/usr/local/cuda-11.6/include -I/home/gabriel/miniconda3/envs/paddle_37/include/python3.7m -c /home/gabriel/Paddle3D/paddle3d/ops/centerpoint_postprocess/postprocess.cu -o /home/gabriel/Paddle3D/paddle3d/ops/build/centerpoint_postprocess/lib.linux-x86_64-cpython-37/postprocess.cu.o -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -ccbin cc -Xcompiler -fPIC --expt-relaxed-constexpr -DNVCC -w -DPADDLE_WITH_CUSTOM_KERNEL -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
/home/gabriel/Paddle3D/paddle3d/ops/centerpoint_postprocess/postprocess.cu(147): error: too few arguments in function call

1 error detected in the compilation of "/home/gabriel/Paddle3D/paddle3d/ops/centerpoint_postprocess/postprocess.cu".
error: command '/usr/local/cuda-11.6/bin/nvcc' failed with exit code 1

Since I dont care about centerpoint, I commented out the operations in paddle3d/ops/__init__.py:

    'centerpoint_postprocess': {
        # 'sources': [
        #     'centerpoint_postprocess/iou3d_nms_kernel.cu',
        #     'centerpoint_postprocess/postprocess.cc',
        #     'centerpoint_postprocess/postprocess.cu'
        # ],
        # 'version':
        # '0.1.0'
    },

After I did this, I was able to run setup.py successfully. However, I still cannot run infer.py

(paddle_37) gabriel@gabriel-Z790-AORUS-ELITE-AX:~/Paddle3D$ python3.7 deploy/iassd/python/infer.py --model_file outputs/iassd_kitti/export/iassd.pdmodel --params_file outputs/iassd_kitti/export/iassd.pdiparams --lidar_file datasets/KITTI/testing/velodyne/000000.bin --gpu_id 0 --run_mode trt_fp32
W0903 11:32:00.621784 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.621804 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.621806 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.621807 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.621809 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.626067 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.626078 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.626088 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.626089 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.626091 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.626092 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.631099 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.631114 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.631116 71289 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:32:00.631117 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.631119 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.631119 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.631120 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.631122 71289 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:32:00.631124 71289 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:32:00.631124 71289 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:32:00.631125 71289 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:32:00.631126 71289 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:32:00.631129 71289 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
W0903 11:32:00.636233 71289 custom_operator.cc:723] Operator (ms_deform_attn) has been registered.
W0903 11:32:00.636245 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.636246 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.636250 71289 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:32:00.636250 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.636252 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.636255 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.636255 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.636257 71289 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:32:00.636258 71289 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:32:00.636260 71289 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:32:00.636261 71289 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:32:00.636263 71289 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:32:00.636265 71289 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
W0903 11:32:00.639941 71289 custom_operator.cc:723] Operator (bev_pool_v2) has been registered.
W0903 11:32:00.639951 71289 custom_operator.cc:723] Operator (ms_deform_attn) has been registered.
W0903 11:32:00.639976 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.639977 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.639978 71289 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:32:00.639981 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.639982 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.639984 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.639986 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.639987 71289 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:32:00.639989 71289 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:32:00.639990 71289 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:32:00.639992 71289 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:32:00.639993 71289 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:32:00.639995 71289 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
W0903 11:32:00.645074 71289 custom_operator.cc:723] Operator (bev_pool_v2) has been registered.
W0903 11:32:00.645089 71289 custom_operator.cc:723] Operator (ms_deform_attn) has been registered.
W0903 11:32:00.645092 71289 custom_operator.cc:723] Operator (bev_pool_v2_bkwd) has been registered.
W0903 11:32:00.645093 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.645095 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.645097 71289 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:32:00.645098 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.645100 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.645102 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.645103 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.645105 71289 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:32:00.645107 71289 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:32:00.645108 71289 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:32:00.645109 71289 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:32:00.645112 71289 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:32:00.645112 71289 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
W0903 11:32:00.652513 71289 custom_operator.cc:723] Operator (hard_voxelize) has been registered.
W0903 11:32:00.652525 71289 custom_operator.cc:723] Operator (bev_pool_v2) has been registered.
W0903 11:32:00.652527 71289 custom_operator.cc:723] Operator (ms_deform_attn) has been registered.
W0903 11:32:00.652529 71289 custom_operator.cc:723] Operator (bev_pool_v2_bkwd) has been registered.
W0903 11:32:00.652530 71289 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:32:00.652532 71289 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:32:00.652534 71289 custom_operator.cc:723] Operator (ball_query_stack) has been registered.
W0903 11:32:00.652535 71289 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
W0903 11:32:00.652536 71289 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:32:00.652539 71289 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:32:00.652540 71289 custom_operator.cc:723] Operator (assign_score_withk) has been registered.
W0903 11:32:00.652541 71289 custom_operator.cc:723] Operator (gather_operation) has been registered.
W0903 11:32:00.652544 71289 custom_operator.cc:723] Operator (ball_query_batch) has been registered.
W0903 11:32:00.652544 71289 custom_operator.cc:723] Operator (grouping_operation_batch) has been registered.
W0903 11:32:00.652546 71289 custom_operator.cc:723] Operator (voxel_query_wrapper) has been registered.
W0903 11:32:00.652547 71289 custom_operator.cc:723] Operator (grouping_operation_stack) has been registered.
W0903 11:32:00.652549 71289 custom_operator.cc:723] Operator (farthest_point_sample) has been registered.
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:461: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  interp=Image.BILINEAR):
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1502: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  'nearest': Image.NEAREST,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1503: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  'bilinear': Image.BILINEAR,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1504: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
  'bicubic': Image.BICUBIC,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1505: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
  'box': Image.BOX,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1506: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
  'lanczos': Image.LANCZOS,
/home/gabriel/Paddle3D/paddle3d/transforms/transform.py:1507: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
  'hamming': Image.HAMMING
ortools not installed, install it by "pip install ortools==9.1.9490" if you run BEVLaneDet model
Traceback (most recent call last):
  File "deploy/iassd/python/infer.py", line 23, in <module>
    from paddle3d.ops.pointnet2_ops import (ball_query, farthest_point_sample,
ImportError: cannot import name 'ball_query' from 'pointnet2_ops' (/home/gabriel/miniconda3/envs/paddle_37/lib/python3.7/site-packages/pointnet2_ops-0.0.0-py3.7-linux-x86_64.egg/pointnet2_ops.py)

Even if i omit --run_mode trt_fp32, it still fails with the same error message. Checking the docs, I noticed that it specified that it needs cuda==11.2, so i created another environment with conda install paddlepaddle-gpu==2.4.1 cudatoolkit=11.2 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge.

# packages in environment at /home/gabriel/miniconda3/envs/paddle-37-cuda-11_2:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
_openmp_mutex             5.1                       1_gnu    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
aiofiles                  22.1.0                   pypi_0    pypi
aiosqlite                 0.19.0                   pypi_0    pypi
albumentations            1.3.1                    pypi_0    pypi
anyio                     3.7.1                    pypi_0    pypi
argon2-cffi               23.1.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.2.3                    pypi_0    pypi
assign-score-withk        0.0.0                    pypi_0    pypi
astor                     0.8.1              pyh9f0ad1d_0    conda-forge
attrs                     24.2.0                   pypi_0    pypi
babel                     2.14.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
bce-python-sdk            0.9.19                   pypi_0    pypi
beautifulsoup4            4.12.3                   pypi_0    pypi
bev-pool-v2               0.0.0                    pypi_0    pypi
bev-pool-v2-backward      0.0.0                    pypi_0    pypi
bleach                    6.0.0                    pypi_0    pypi
brotli-python             1.0.9            py37hd23a5d3_7    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
cached-property           1.5.2                    pypi_0    pypi
cachetools                5.5.0                    pypi_0    pypi
certifi                   2024.7.4           pyhd8ed1ab_0    conda-forge
cffi                      1.15.1                   pypi_0    pypi
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.1.7                    pypi_0    pypi
colorlog                  6.8.2                    pypi_0    pypi
comm                      0.1.4                    pypi_0    pypi
cudatoolkit               11.2.2              hbe64b41_10    conda-forge
cudnn                     8.2.1.32             h86fa8c9_0    conda-forge
cycler                    0.11.0                   pypi_0    pypi
cython                    3.0.11                   pypi_0    pypi
debugpy                   1.7.0                    pypi_0    pypi
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1                    pypi_0    pypi
descartes                 1.1.0                    pypi_0    pypi
easydict                  1.13                     pypi_0    pypi
einops                    0.6.1                    pypi_0    pypi
entrypoints               0.4                      pypi_0    pypi
exceptiongroup            1.2.2                    pypi_0    pypi
fastjsonschema            2.20.0                   pypi_0    pypi
filelock                  3.12.2                   pypi_0    pypi
fire                      0.6.0                    pypi_0    pypi
flask                     2.2.5                    pypi_0    pypi
flask-babel               3.1.0                    pypi_0    pypi
fonttools                 4.38.0                   pypi_0    pypi
fqdn                      1.5.1                    pypi_0    pypi
freetype                  2.10.4               h0708190_1    conda-forge
future                    1.0.0                    pypi_0    pypi
h5py                      3.8.0                    pypi_0    pypi
idna                      3.8                pyhd8ed1ab_0    conda-forge
imageio                   2.31.2                   pypi_0    pypi
importlib-metadata        6.7.0                    pypi_0    pypi
importlib-resources       5.12.0                   pypi_0    pypi
iou3d-nms                 0.0.0                    pypi_0    pypi
ipykernel                 6.16.2                   pypi_0    pypi
ipython                   7.34.0                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipywidgets                8.1.5                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
itsdangerous              2.1.2                    pypi_0    pypi
jbig                      2.1               h7f98852_2003    conda-forge
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
joblib                    1.3.2                    pypi_0    pypi
jpeg                      9e                   h166bdaf_1    conda-forge
json5                     0.9.16                   pypi_0    pypi
jsonpointer               3.0.0                    pypi_0    pypi
jsonschema                4.17.3                   pypi_0    pypi
jupyter                   1.1.1                    pypi_0    pypi
jupyter-client            7.4.9                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              4.12.0                   pypi_0    pypi
jupyter-events            0.6.3                    pypi_0    pypi
jupyter-server            1.24.0                   pypi_0    pypi
jupyter-server-fileid     0.9.2                    pypi_0    pypi
jupyter-server-ydoc       0.8.0                    pypi_0    pypi
jupyter-ydoc              0.2.5                    pypi_0    pypi
jupyterlab                3.6.8                    pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-server         2.24.0                   pypi_0    pypi
jupyterlab-widgets        3.0.13                   pypi_0    pypi
kiwisolver                1.4.5                    pypi_0    pypi
lap                       0.4.0                    pypi_0    pypi
lcms2                     2.12                 hddcbb42_0    conda-forge
ld_impl_linux-64          2.38                 h1181459_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
lerc                      2.2.1                h9c3ff4c_0    conda-forge
libblas                   3.9.0           15_linux64_openblas    conda-forge
libcblas                  3.9.0           15_linux64_openblas    conda-forge
libdeflate                1.7                  h7f98852_5    conda-forge
libffi                    3.4.4                h6a678d5_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc-ng                 11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgfortran-ng            13.2.0               h69a702a_0    conda-forge
libgfortran5              13.2.0               ha4646dd_0    conda-forge
libgomp                   11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
liblapack                 3.9.0           15_linux64_openblas    conda-forge
libopenblas               0.3.20          pthreads_h78a6416_0    conda-forge
libpng                    1.6.37               h21135ba_2    conda-forge
libprotobuf               3.18.0               h780b84a_1    conda-forge
libstdcxx-ng              11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libtiff                   4.3.0                hf544144_1    conda-forge
libwebp-base              1.2.2                h7f98852_1    conda-forge
llvmlite                  0.39.1                   pypi_0    pypi
lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
markupsafe                2.1.5                    pypi_0    pypi
matplotlib                3.5.2                    pypi_0    pypi
matplotlib-inline         0.1.6                    pypi_0    pypi
mistune                   3.0.2                    pypi_0    pypi
motmetrics                1.4.0                    pypi_0    pypi
ms-deform-attn            0.0.0                    pypi_0    pypi
nbclassic                 1.1.0                    pypi_0    pypi
nbclient                  0.7.4                    pypi_0    pypi
nbconvert                 7.6.0                    pypi_0    pypi
nbformat                  5.8.0                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
nest-asyncio              1.6.0                    pypi_0    pypi
networkx                  2.6.3                    pypi_0    pypi
notebook                  6.5.7                    pypi_0    pypi
notebook-shim             0.2.4                    pypi_0    pypi
numba                     0.56.4                   pypi_0    pypi
numpy                     1.21.6           py37h976b520_0    conda-forge
nuscenes-devkit           1.1.10                   pypi_0    pypi
olefile                   0.47               pyhd8ed1ab_0    conda-forge
opencv-python             4.5.5.64                 pypi_0    pypi
opencv-python-headless    4.6.0.66                 pypi_0    pypi
openjpeg                  2.4.0                hb52868f_1    conda-forge
openssl                   1.1.1w               h7f8727e_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
opt_einsum                3.3.0              pyhc1e730c_2    conda-forge
packaging                 24.0                     pypi_0    pypi
paddle3d                  1.0.0                     dev_0    <develop>
paddledet                 2.6.0                    pypi_0    pypi
paddlepaddle-gpu          2.4.1.post112            pypi_0    pypi
paddleseg                 2.8.0                    pypi_0    pypi
pandas                    1.3.5                    pypi_0    pypi
pandocfilters             1.5.1                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    8.3.2            py37h0f21c89_0    conda-forge
pip                       22.3.1           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pkgutil-resolve-name      1.3.10                   pypi_0    pypi
pointnet2-ops             0.0.0                    pypi_0    pypi
prettytable               3.7.0                    pypi_0    pypi
prometheus-client         0.17.1                   pypi_0    pypi
prompt-toolkit            3.0.47                   pypi_0    pypi
protobuf                  4.24.4                   pypi_0    pypi
psutil                    6.0.0                    pypi_0    pypi
ptyprocess                0.7.0                    pypi_0    pypi
pyclipper                 1.3.0.post5              pypi_0    pypi
pycocotools               2.0.7                    pypi_0    pypi
pycparser                 2.21                     pypi_0    pypi
pycryptodome              3.20.0                   pypi_0    pypi
pygments                  2.17.2                   pypi_0    pypi
pyparsing                 3.1.4                    pypi_0    pypi
pyquaternion              0.9.9                    pypi_0    pypi
pyrsistent                0.19.3                   pypi_0    pypi
pysocks                   1.7.1            py37h89c1867_5    conda-forge
python                    3.7.16               h7a1cb2a_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil           2.9.0.post0              pypi_0    pypi
python-json-logger        2.0.7                    pypi_0    pypi
python_abi                3.7                     2_cp37m    conda-forge
pytz                      2024.1                   pypi_0    pypi
pywavelets                1.3.0                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
pyzmq                     26.2.0                   pypi_0    pypi
qudida                    0.0.4                    pypi_0    pypi
rarfile                   4.2                      pypi_0    pypi
readline                  8.2                  h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
requests                  2.32.2             pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
roiaware-pool3d           0.0.0                    pypi_0    pypi
scikit-image              0.19.3                   pypi_0    pypi
scikit-learn              1.0.2                    pypi_0    pypi
scipy                     1.7.3                    pypi_0    pypi
send2trash                1.8.3                    pypi_0    pypi
setuptools                65.6.3           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
shapely                   1.8.5                    pypi_0    pypi
six                       1.16.0             pyh6c4a22f_0    conda-forge
sklearn                   0.0                      pypi_0    pypi
sniffio                   1.3.1                    pypi_0    pypi
soupsieve                 2.4.1                    pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
termcolor                 2.3.0                    pypi_0    pypi
terminado                 0.17.1                   pypi_0    pypi
terminaltables            3.1.10                   pypi_0    pypi
threadpoolctl             3.1.0                    pypi_0    pypi
tifffile                  2021.11.2                pypi_0    pypi
tinycss2                  1.2.1                    pypi_0    pypi
tk                        8.6.14               h39e8969_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tomli                     2.0.1                    pypi_0    pypi
tornado                   6.2                      pypi_0    pypi
tqdm                      4.66.5                   pypi_0    pypi
traitlets                 5.9.0                    pypi_0    pypi
typeguard                 4.1.2                    pypi_0    pypi
typing-extensions         4.7.1                    pypi_0    pypi
uri-template              1.3.0                    pypi_0    pypi
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
visualdl                  2.5.3                    pypi_0    pypi
voxelize                  0.0.0                    pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webcolors                 1.13                     pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.6.1                    pypi_0    pypi
werkzeug                  2.2.3                    pypi_0    pypi
wheel                     0.38.4           py37h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
widgetsnbextension        4.0.13                   pypi_0    pypi
xmltodict                 0.13.0                   pypi_0    pypi
xz                        5.4.6                h5eee18b_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
y-py                      0.6.2                    pypi_0    pypi
ypy-websocket             0.8.4                    pypi_0    pypi
zipp                      3.15.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zstd                      1.5.0                ha95c52a_0    conda-forge

If I run infer.py, same error:

(paddle-37-cuda-11_2) gabriel@gabriel-Z790-AORUS-ELITE-AX:~/Paddle3D$ python3.7 deploy/iassd/python/infer.py --model_file outputs/iassd_kitti/export/iassd.pdmodel --params_file outputs/iassd_kitti/export/iassd.pdiparams --lidar_file datasets/KITTI/testing/velodyne/000000.bin --gpu_id 0 
ortools not installed, install it by "pip install ortools==9.1.9490" if you run BEVLaneDet model
2024-09-03 11:36:13,607 -  WARNING - No custom op iou3d_nms found, try JIT build
Compiling user custom op, it will cost a few seconds.....
2024-09-03 11:36:14,353 -     INFO - iou3d_nms builded success!
2024-09-03 11:36:14,353 -  WARNING - No custom op pointnet2_ops found, try JIT build
Compiling user custom op, it will cost a few seconds.....
2024-09-03 11:36:14,942 - INFO - Re-Compiling pointnet2_ops.so, because specified cflags have been changed. New signature 36348e91a4cc0bf4ae6ca42e5dea053f has been saved into /home/gabriel/.cache/paddle_extensions/pointnet2_ops/version.txt.
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
W0903 11:36:30.812824 74126 custom_operator.cc:723] Operator (nms_normal_gpu) has been registered.
W0903 11:36:30.812853 74126 custom_operator.cc:723] Operator (nms_gpu) has been registered.
W0903 11:36:30.812855 74126 custom_operator.cc:723] Operator (boxes_overlap_bev_gpu) has been registered.
W0903 11:36:30.812857 74126 custom_operator.cc:723] Operator (boxes_iou_bev_gpu) has been registered.
W0903 11:36:30.812858 74126 custom_operator.cc:723] Operator (boxes_iou_bev_cpu) has been registered.
2024-09-03 11:36:30,819 -     INFO - pointnet2_ops builded success!
Traceback (most recent call last):
  File "deploy/iassd/python/infer.py", line 23, in <module>
    from paddle3d.ops.pointnet2_ops import (ball_query, farthest_point_sample,
  File "/home/gabriel/Paddle3D/paddle3d/ops/__init__.py", line 189, in __getattr__
    attr, self.modulename, module.__file__))
ImportError: cannot import name 'ball_query' from 'pointnet2_ops' (/home/gabriel/.cache/paddle_extensions/pointnet2_ops/pointnet2_ops_140388231238848.py)

What can be causing this issue?

@tongfengqi
Copy link

I have also encountered the same problem. If you solve it, can you tell me how to solve it please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants