PJLab-ADG / neuralsim

neuralsim: 3D surface reconstruction and simulation based on 3D neural rendering.
MIT License
582 stars 31 forks source link

Usage of code_multi #47

Open sonnefred opened 5 months ago

sonnefred commented 5 months ago

Hi, thanks for the code release of multi objects, and I have downloaded it and want to have a try. But I encountered a problem, which is as follows. Could you tell me whether the code can work now or how can I solve this problem? Thanks!

图片
213120632 commented 3 months ago

I have encountered the same error as you. You can solve it by adding a bracket at the end of line 169 of file lotd_nerf.py and reinstall nr3d_lib.

213120632 commented 3 months ago

The function torch.no_grad() cannot be called without the bracket, i try to debug the code, but this bug is hard to locate.

发自我的iPhone

在 2024年5月9日,00:00,ushio2021 @.***> 写道:

 I have encountered the same error as you. You can solve it by adding a bracket at the end of line 169 of file lotd_nerf.py and reinstall nr3d_lib.

Hi, do you know the exact reason? It seems @torch.no_grad can be used without the bracket?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

ushio2021 commented 3 months ago

The function torch.no_grad() cannot be called without the bracket, i try to debug the code, but this bug is hard to locate. 发自我的iPhone 在 2024年5月9日,00:00,ushio2021 @.***> 写道:  I have encountered the same error as you. You can solve it by adding a bracket at the end of line 169 of file lotd_nerf.py and reinstall nr3d_lib. Hi, do you know the exact reason? It seems @torch.no_grad can be used without the bracket? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Alright, I found that it can be called without the bracket only after PyTorch 2.1.