krrish94 / nerf-pytorch

A PyTorch re-implementation of Neural Radiance Fields
Other
872 stars 123 forks source link

How do I install 'torchsarchsorted'? #39

Open 23hyun opened 1 year ago

23hyun commented 1 year ago

(nerf) C:\Users\user\Desktop\nerf-pytorch-master\nerf-pytorch-master>python train_nerf.py --config config/lego.yml Traceback (most recent call last): File "train_nerf.py", line 13, in from nerf import (CfgNode, get_embedding_function, get_ray_bundle, img2mse, File "C:\Users\user\Desktop\nerf-pytorch-master\nerf-pytorch-master\nerf__init__.py", line 5, in from .nerf_helpers import * File "C:\Users\user\Desktop\nerf-pytorch-master\nerf-pytorch-master\nerf\nerf_helpers.py", line 6, in import torchsearchsorted ModuleNotFoundError: No module named 'torchsearchsorted'

krrish94 commented 1 year ago

torchsearchsorted is no longer needed if you are using newer pytorch versions (they have a torch.searchsorted implementation)

Perhaps this PR is a good starting point https://github.com/krrish94/nerf-pytorch/pull/19