Closed dv-fenix closed 1 year ago
Hi @tangjiapeng, I was unable to resolve this issue. Can you help with this?
I was finally able to set up the conda env for this project. For anyone who runs into similar issues, here is what I did:
# Create conda environment
mamba create --name diffuscene python=3.8
# Activate conda environment
mamba activate diffuscene
# Install pytorch 1.13.0, note that support for cuda 11.3 has been deprecated
mamba install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.6 -c pytorch -c nvidia
# Install pip dependencies
pip install cython
pip install networkx
pip install pyrr
pip install Pillow
pip install scipy
pip install tqdm
pip install matplotlib
pip install simple_3dviz
pip install pytorch-fast-transformers
pip install open3d
pip install seaborn
pip install num2words
# Setup extension modules
python setup.py build_ext --inplace
pip install -e .
# Set CUDA_HOME
export CUDA_HOME="<path_to_conda_env>"
# Install ChamferDistancePytorch
cd ChamferDistancePytorch/chamfer3D
python setup.py install
Note that I personally prefer using mamba over conda because it's so much faster. But in case you don't want to, you can simply replace mamba
with conda
everywhere.
Closing this issue now.
Hello, @dv-fenix .Thank you for your message, I would like to ask you to run the training script has encountered the following situation:
ModuleNotFoundError: No module named 'torchtext'
Hi @shanqiiu
I seem to have missed that in the environment file. Installing torchtext
with pip
was leading to some issues. Installing it with mamba
worked for me.
You can use the following command to do so:
mamba install torchtext==0.14.1 -c pytorch
Hope this helps!
Hi! I ran into some issues while trying to setup the environment as per the instructions provided on the repo. Initially, the build for the conda environment failed with the following error:
and after removing trimesh 3.12.7 from the .yaml file,
I found that
trimesh
is pip installable, and the latest stable release ofplyfile
is automatically installed as a dependency for one of the other packages. Hence, the following environment.yaml file fixes the build:But then the installation for ChamferDistancePytorch fails with the following traceback:
Can you please help me figure out what's gone wrong?