You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got this running on Ubuntu 22.04 + CUDA 1.24 as part of my research. Given this OS/CUDA combo is a fairly standard setup at the moment, I thought other users/researchers might appreciate some of the additional checks / hints I needed to get it going.
First steps - check your driver version supports at least the level of CUDA you want to use. nvidia-smi
It displays at the top left the max CUDA version supported by the current driver
At this point make sure the installed torch version is for the version of CUDA you want to use.
You can check this via: python -m torch.utils.collect_env
If not, uninstall it and install the relevant version.
At this point check the correct version of libstdc++.so.6 is installed as required by diffvg. strings <your-homedir>/anaconda3/envs/3Doodle/lib/libstdc++.so.6 | grep GLIBCXX_3.4.30
If nothing is returned you prob. have an older version, and diffvg will not run.
I tried updating the relevant package, but that just destroyed the whole install, so instead I went with the direct approach:
cd <your-homedir>/anaconda3/envs/3Doodle/lib
mv libstdc++.so.6 libstdc++.so.6.old # keep old version, to allow roll back if needed.
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
cd -
You can validate this by running the string command again.
Now continue. I chose to install the latest stable pytorch, and let it generate a local wheel (slow, but guaranteed to match other installed packages). If you know the compatible wheel, you can specify that instead as per the original instructions.
pip install fvcore
pip install "git+https://github.com/facebookresearch/pytorch3d.git@stable"
pip install -r requirements.txt
conda install -y scikit-image # needed by some diffvg examples
pip install ninja # needed by the 3doodle viewer
pip install -e .
The model should now train using the original examples, and you can use the interactive viewer to inspect them.
Rgds,
Dawn Raison
PhD Sketch Researcher @ CVSSP / PAI (University of Surrey)
The text was updated successfully, but these errors were encountered:
Hi folks,
I've got this running on Ubuntu 22.04 + CUDA 1.24 as part of my research. Given this OS/CUDA combo is a fairly standard setup at the moment, I thought other users/researchers might appreciate some of the additional checks / hints I needed to get it going.
First steps - check your driver version supports at least the level of CUDA you want to use.
nvidia-smi
It displays at the top left the max CUDA version supported by the current driver
Install the relevant version of CUDA you want to use - in my case CUDA 12.4
Then validate it is installed / active with
nvcc --version
Now from the original instructions:
conda env create -f environment.yml
Edit activate.sh as needed. I changed it as follows:
Run the script
source activate.sh
At this point make sure the installed torch version is for the version of CUDA you want to use.
You can check this via:
python -m torch.utils.collect_env
If not, uninstall it and install the relevant version.
Continuing the original instructions:
At this point check the correct version of
libstdc++.so.6
is installed as required by diffvg.strings <your-homedir>/anaconda3/envs/3Doodle/lib/libstdc++.so.6 | grep GLIBCXX_3.4.30
If nothing is returned you prob. have an older version, and diffvg will not run.
I tried updating the relevant package, but that just destroyed the whole install, so instead I went with the direct approach:
You can validate this by running the string command again.
Now continue. I chose to install the latest stable pytorch, and let it generate a local wheel (slow, but guaranteed to match other installed packages). If you know the compatible wheel, you can specify that instead as per the original instructions.
The model should now train using the original examples, and you can use the interactive viewer to inspect them.
Rgds,
Dawn Raison
PhD Sketch Researcher @ CVSSP / PAI (University of Surrey)
The text was updated successfully, but these errors were encountered: