valeoai / ALSO

ALSO: Automotive Lidar Self-supervision by Occupancy estimation
Other
169 stars 19 forks source link

what is the pytorch and cuda version to run your code, i got problem when testing openpcdet? #11

Open Jacobi93 opened 8 months ago

Jacobi93 commented 8 months ago

hi, thx for your great project. i got problem when i install openpcdet and run python setup.py develop The error is shown below:

running develop /home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/command/develop.py:40: 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.
    ********************************************************************************

!! easy_install.initialize_options(self) /home/hea4sgh/.conda/envs/also/lib/python3.10/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() running egg_info writing pcdet.egg-info/PKG-INFO writing dependency_links to pcdet.egg-info/dependency_links.txt writing requirements to pcdet.egg-info/requires.txt writing top-level names to pcdet.egg-info/top_level.txt reading manifest file 'pcdet.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pcdet.egg-info/SOURCES.txt' running build_ext /home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py:387: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.7). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) /home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py:397: UserWarning: There are no g++ version bounds defined for CUDA version 11.8 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'pcdet.ops.iou3d_nms.iou3d_nms_cuda' extension Traceback (most recent call last): File "/home/hea4sgh/ALSO/OpenPCDet/setup.py", line 34, in setup( File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/init.py", line 103, in setup return distutils.core.setup(**attrs) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run self.install_for_development() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/command/develop.py", line 109, in install_for_development self.run_command('build_ext') File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run _build_ext.run(self) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run self.build_extensions() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 249, in build_extension _build_ext.build_extension(self, ext) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension objects = self.compiler.compile( File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 649, in unix_wrap_ninja_compile cuda_post_cflags = unix_cuda_flags(cuda_post_cflags) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 548, in unix_cuda_flags cflags + _get_cuda_arch_flags(cflags)) File "/home/hea4sgh/.conda/envs/also/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1780, in _get_cuda_arch_flags arch_list[-1] += '+PTX' IndexError: list index out of range

I found some related issues. https://github.com/open-mmlab/OpenPCDet/issues/1212

and I found that it may be because of the cuda version issue. so what is the pytorch and cuda version to run your code? BTW, could you please provide an easy way to install or copy your environment? I can only see some dependencies in your README. thx in advance.