当前位置:网站首页>OpenPCDet installs the latest version: spconv in one step

OpenPCDet installs the latest version: spconv in one step

2022-08-11 06:16:00 zhSunw

OpenPCDet installation

OpenPCDet github official website:https://github.com/open-mmlab/OpenPCDet
Wow...It's really been a long time.
Post a successful picture first:
Insert picture description here
ActuallyThe server in the school laboratory has an installed environment, but since I haven't enrolled in the school and cannot use the campus network, and I have to process the data set in the near future, I still need to install it on the server on the undergraduate side first.

I tried to install it more than a month ago, and I have been stuck in Spconv's strange error report.Later, it was found that spconv has version 2.x, which can be installed directly with pip and take off directly.Many thanks.Then many tutorials are still in accordance with the previous version, and you need to get spconv by yourself, so let's update it and record the pits you have stepped on by the way.

Let's list the required environment first (pytorch, CUDA installation is not much to say, it is more complicated, you can directly refer to the relevant blog):

  • Linux (tested on Ubuntu 14.04/16.04/18.04/20.04/21.04) I'm using CentOS and it's fine
  • Python 3.6+
  • PyTorch 1.1 or higher (tested on PyTorch 1.1, 1,3, 1,5~1.10)
  • CUDA 9.0 or higher (PyTorch 1.3+ needs CUDA 9.2+)
  • spconv v1.0 (commit 8da6f96) or spconv v1.2 or spconv v2.x

Spconv

Enter Spconv official website, find the corresponding install command according to your CUDA version, and enter it directly.
insert image description here

pcdet v0.5

  1. Clone the git repository (you can also download the zip yourself)

    git clone https://github.com/open-mmlab/OpenPCDet.git
  2. Install dependency library
    First enter the corresponding directory, then run

    pip install -r requirements.txt
  3. Install pcdet

    python setup.py develop
  4. Check
    run, no error is reported:

    pythonimport pcdet

Step on the pit

pip install spconv cannot find package

Update the pip version

Modify the default python of pip, do not go down to the library managed by conda

Modify the environment variable to change from conda to the python3.7 that comes with the system

windows can't be installed, strange error is reported

There is no solution..I don't know if windows can be installed (spconv is OK, OpenPCDet is not safe, the official website environment says that Linux is needed, I tried it myself, but it really won't work)

Cannot update gcc without root

If you need to update the gcc version (7.1 is available, recommended, not too high or too low), if you have root, you can do whatever you want, just click what you find, if you don't have root, it is strongly recommended: https://www.cnblogs.com/jessepeng/p/11674780.htmlBlog.Just follow this tutorial, it's very detailed.

Running setup keeps reporting errors

The high probability is that the gcc version is wrong. It is recommended to update it according to the previous article.


Students who are unclear about the specific details of the above questions can privately message me (take me to remember)

原网站

版权声明
本文为[zhSunw]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110514324174.html