Installation

This guide describes the steps to install segment-lidar using PyPI or from source.

Step 1: Create an environment

Before installing segment-lidar, you need to create an environment by running the following commands:

conda create -n samlidar python=3.9
conda activate samlidar

This command will create a new Conda environment named samlidar. We recommend using Python 3.9, but feel free to test with other versions.

Please note that using a Conda environment is not mandatory, but it is highly recommended. Alternatively, you can use virtualenv.

Step 2: Install PyTorch

For the installation instructions and options, refer to the official PyTorch website: PyTorch Get Started.

Note

If you want to leverage GPU acceleration with PyTorch, make sure you have a CUDA-supported GPU and install the corresponding CUDA toolkit. Follow the instructions in the official CUDA installation guide: NVIDIA CUDA Installation Guide.

Step 3: Install segment-lidar

You can easily install segment-lidar from PyPI using the following command:

pip install segment-lidar

Or, you can install it from source:

git clone https://github.com/Yarroudh/segment-lidar
cd segment-lidar
python setup.py install

To make sure that segment-lidar is installed correctly, you can run the following command:

python -c "import segment_lidar; print(segment_lidar.__version__)"

If the installation is successful, you should see the version that you have installed.