cannot import name 'compute_relocation'
henrypearce4D opened this issue · 1 comments
henrypearce4D commented
I'm now testing the install on linux.
I had errors with the submodules not downloading because of host key so I downloaded them manually;
cd submodules
git clone https://github.com/shakibakh/diff-gaussian-rasterization.git
git clone https://gitlab.inria.fr/bkerbl/simple-knn.git
cd submodules/diff-gaussian-rasterization/third_party
git clone https://github.com/g-truc/glm.git
I then was able to create and install the environment
running a training test I get the error;
File "train.py", line 16, in <module>
from gaussian_renderer import render, network_gui
File "/home/infinite/3dgs-mcmc/gaussian_renderer/__init__.py", line 15, in <module>
from scene.gaussian_model import GaussianModel
File "/home/infinite/3dgs-mcmc/scene/__init__.py", line 16, in <module>
from scene.dataset_readers import sceneLoadTypeCallbacks
File "/home/infinite/3dgs-mcmc/scene/dataset_readers.py", line 24, in <module>
from scene.gaussian_model import BasicPointCloud
File "/home/infinite/3dgs-mcmc/scene/gaussian_model.py", line 23, in <module>
from utils.reloc_utils import compute_relocation_cuda
File "/home/infinite/3dgs-mcmc/utils/reloc_utils.py", line 1, in <module>
from diff_gaussian_rasterization import compute_relocation
ImportError: cannot import name 'compute_relocation' from 'diff_gaussian_rasterization' (/home/infinite/anaconda3/envs/3dgs_mcmc/lib/python3.7/site-packages/diff_gaussian_rasterization/__init__.py)
I mentioned on another issue that I got the same message on windows and did some modifications to fix it but ran into more errors because of python 3.7
I feel that manually downloading the the submodules may not be the correct way, any reason why the submodules are not working and what these other errors are?
henrypearce4D commented
I fixed my submodule download error by adding an SSH key to my github account.
This comment fixed my compute_relocation import error #4 (comment)