To clone this repository along with its submodules, use the --recursive flag:
git clone --recursive https://github.com/JohnRomanelis/SPVD_Lightning.gitWe recommend using Anaconda to manage your Python environment.
We also provide an environment.yml to set it up.
By running the following command you will create a conda env called spvd containing most of the libraries required to run our code.
conda env create -f environment.ymlTorchSparse is now included as a submodule in the repository under the dependencies/torchsparse folder, so there is no need to clone it separately. However, you need to install system dependencies and the library itself.
- Install Google Sparse Hash:
sudo apt-get install libsparsehash-dev- Install torchsparse from the submodule:
cd dependencies/torchsparse
pip install -e .-
Chamfer:
- Navigate to the SPVD/metrics/chamfer_dist directory:
cd SPVD/metrics/chamfer_dist- Run:
python setup.py install --user
-
EMD:
- Navigate to the SPVD/metrics/PyTorchEMD directory:
cd SPVD/metrics/PyTorchEMD- Run:
python setup.py install
- Run:
cp ./build/lib.linux-x86_64-cpython-310/emd_cuda.cpython-310-x86_64-linux-gnu.so .If an error is raised in this last command, list all directories inside
buildand replace the name of the directory with the one in your system named lib.linux-x86_64-cpython-*.
If you find this work useful in your research, please consider citing:
@INPROCEEDINGS{11396860,
author={Romanelis, Ioannis and Fotis, Vlassis and Munteanu, Adrian and Moustakas, Konstantinos},
booktitle={2025 International Conference on Visual Communications and Image Processing (VCIP)},
title={G-SPVD: Image and Sketch Guided Point Cloud Generation with Sparse Point-Voxel Diffusion Models},
year={2025},
volume={},
number={},
pages={1-5},
doi={10.1109/VCIP67698.2025.11396860}}