apple / ml-hugs

Official repository of HUGS: Human Gaussian Splats (CVPR 2024)
https://machinelearning.apple.com/research/hugs
Other
164 stars 16 forks source link

Can’t download "simple-knn" submodule #11

Open YujiaLin-523 opened 2 weeks ago

YujiaLin-523 commented 2 weeks ago

The link to simple-knn in this repo is not working, so that I can't download the submodule.

YujiaLin-523 commented 2 weeks ago

And there is another problem that when I performed evaluation, I met this:

Traceback (most recent call last):
  File "scripts/evaluate.py", line 19, in <module>
    from hugs.trainer import GaussianTrainer
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/__init__.py", line 6, in <module>
    from .gs_trainer import GaussianTrainer
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/gs_trainer.py", line 27, in <module>
    from hugs.models.hugs_trimlp import HUGS_TRIMLP
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/__init__.py", line 1, in <module>
    from .scene import SceneGS
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/scene.py", line 20, in <module>
    from simple_knn._C import distCUDA2
ModuleNotFoundError: No module named 'simple_knn'

I have installed this submodule and installed simple_knn in my conda environment using pip

LarkLeeOnePiece commented 2 weeks ago

And there is another problem that when I performed evaluation, I met this:

Traceback (most recent call last):
  File "scripts/evaluate.py", line 19, in <module>
    from hugs.trainer import GaussianTrainer
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/__init__.py", line 6, in <module>
    from .gs_trainer import GaussianTrainer
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/gs_trainer.py", line 27, in <module>
    from hugs.models.hugs_trimlp import HUGS_TRIMLP
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/__init__.py", line 1, in <module>
    from .scene import SceneGS
  File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/scene.py", line 20, in <module>
    from simple_knn._C import distCUDA2
ModuleNotFoundError: No module named 'simple_knn'

I have installed this submodule and installed simple_knn in my conda environment using pip

Could you see the package name"simple_knn" when you used "conda list"?

YujiaLin-523 commented 2 weeks ago

Dear Lark Lee, Yes, I can see it in my conda environment but it still says this module is not installed...[image]

Yujia Lin Glasgow College, University of Electronic Science and Technology of China Chengdu, Sichuan

From: "Lark @.> Date: Fri, Jul 12, 2024, 13:04 Subject: Re: [apple/ml-hugs] Can’t download "simple-knn" submodule (Issue #11) To: @.> Cc: "Yujia @.>, "State @.>

And there is another problem that when I performed evaluation, I met this:Traceback (most recent call last): File "scripts/evaluate.py", line 19, in from hugs.trainer import GaussianTrainer File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/init.py", line 6, in from .gs_trainer import GaussianTrainer File "/home/ubuntu/lyj/Project/HUGS/./hugs/trainer/gs_trainer.py", line 27, in from hugs.models.hugs_trimlp import HUGS_TRIMLP File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/init.py", line 1, in from .scene import SceneGS File "/home/ubuntu/lyj/Project/HUGS/./hugs/models/scene.py", line 20, in from simple_knn._C import distCUDA2 ModuleNotFoundError: No module named 'simple_knn' I have installed this submodule and installed simple_knn in my conda environment using pip Could you see the package name"simple_knn" when you used "conda list"? — Reply to this email directly, view it on GitHubhttps://github.com/apple/ml-hugs/issues/11#issuecomment-2224645015, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB6EBQUZZFOXGRPLS6TJDY3ZL5PV7AVCNFSM6AAAAABKUMRSTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRUGY2DKMBRGU. You are receiving this because you modified the open/close state.[image: https://github.com/notifications/beacon/BB6EBQTGWCSQDXOX6VJ34Y3ZL5PV7A5CNFSM6AAAAABKUMRSTOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUETFRZO.gif]Message ID: @.***>

Daydreamer-f commented 2 weeks ago

try this: pip install git+https://gitlab.inria.fr/bkerbl/simple-knn.git

YujiaLin-523 commented 2 weeks ago

try this: pip install git+https://gitlab.inria.fr/bkerbl/simple-knn.git

@Daydreamer-f Well, thank you. But it still not work...

ZhiyaoZhou commented 2 weeks ago

try this: pip install git+https://gitlab.inria.fr/bkerbl/simple-knn.git

@Daydreamer-f Well, thank you. But it still not work...

or you could try typing "git clone https://gitlab.inria.fr/bkerbl/simple-knn.git" in this directory: ml-hugs/submodules/ then "cd simple-knn" and "pip install ."

YujiaLin-523 commented 2 weeks ago

try this: pip install git+https://gitlab.inria.fr/bkerbl/simple-knn.git

@Daydreamer-f Well, thank you. But it still not work...

or you could try typing "git clone https://gitlab.inria.fr/bkerbl/simple-knn.git" in this directory: ml-hugs/submodules/ then "cd simple-knn" and "pip install ."

I tried this and it still raised the error that there is no simple-knn in my environment. What is your OS and CUDA version? Maybe I can retry it using your settings. Btw, it should be pip install ./ in your advice rather than pip install.

Daydreamer-f commented 3 days ago

try this: pip install git+https://gitlab.inria.fr/bkerbl/simple-knn.git

@Daydreamer-f Well, thank you. But it still not work...

or you could try typing "git clone https://gitlab.inria.fr/bkerbl/simple-knn.git" in this directory: ml-hugs/submodules/ then "cd simple-knn" and "pip install ."

I tried this and it still raised the error that there is no simple-knn in my environment. What is your OS and CUDA version? Maybe I can retry it using your settings. Btw, it should be pip install ./ in your advice rather than pip install.

I simply type this command in the conda environment which is the same as the one hugs required. I changed torch version to 1.21.0 and CUDA version remain 11.7 to fix the pytorch3d version. Did you meet any errors when installing simple-knn using pip? And when you installed it successfully, can you try these command in your conda environment:

python import simple-knn

And report what happened? (我之前安装simple-knn的时候也遇到过一些报错,比如torch和CUDA版本不符,但都是在安装的时候报的error,simple-knn一般成功安装了运行的时候都没有问题。所以你确定你成功安装了吗?)