Closed binaryannamolly closed 8 months ago
I found the solution.
git clone -b v2.0.0 https://github.com/mit-han-lab/torchsparse.git
cd torchsparse
pip install .
Thanks! This seems to work as well. pip install --upgrade git+https://github.com/mit-han-lab/torchsparse.git@v1.4.0
Is there an existing issue for this?
Have you followed all the steps in the FAQ?
Current Behavior
I have the same error. Error: cannot import name 'PointTensor' from 'torchsparse'
ImportError: cannot import name 'PointTensor' from 'torchsparse' (.../python3.10/site-packages/torchsparse/init.cpython-310-x86_64-linux-gnu.so)
My environment,
Ubuntu 22.04.2 LTS PyCharm 2023.2.3 (Professional Edition) Python 3.10 torch version 2.0.1+cu118 cuda version 11.8
Torchparse was installed using, python -c "$(curl -fsSL https://raw.githubusercontent.com/mit-han-lab/torchsparse/master/install.py)"
Error Line
/spvnas/core/models/semantic_kitti/spvnas.py", line 9, in
from torchsparse import PointTensor, SparseTensor
Environment
Full Error Log
Error Log
Traceback (most recent call last): File "/spvnas/test_spvnas108m_cluster.py", line 178, in