Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of sparse depth loss breaks the code #4

Open
Ahmad-Jarrar opened this issue Feb 25, 2025 · 1 comment
Open

Implementation of sparse depth loss breaks the code #4

Ahmad-Jarrar opened this issue Feb 25, 2025 · 1 comment

Comments

@Ahmad-Jarrar
Copy link

The provided script for synthetic data scripts/synthetic_nerf_run.sh worked well until commit 37a93672d5464eb0781d910a156075b9017b1c32. The issue has started with the implementation of sparse depth loss 12dd57be09488c390eaeff2aa01e4d7a082d8573.

============ start lego ============
Output folder: output/synthetic/baseline/lego
Read dataset in NeRF format.
res_downscale=0.0
res_width=0
Traceback (most recent call last):
File "/local/home/svraster/train.py", line 584, in
training(args)
File "/local/home/svraster/train.py", line 48, in training
data_pack = DataPack(cfg.data, cfg.model.white_background)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/local/home/svraster/src/dataloader/data_pack.py", line 61, in init
self._cameras['train'][dataset_downscale] = CameraList(
^^^^^^^^^^^
File "/local/home/svraster/src/dataloader/data_pack.py", line 117, in init
self.camera_list = [
^
File "/local/home/svraster/src/dataloader/data_pack.py", line 118, in
instantiate_a_camera(cam_info, cfg_data, dataset_downscale)
File "/local/home/svraster/src/dataloader/data_pack.py", line 187, in instantiate_a_camera
return Camera(w2c=cam_info.w2c,
^^^^^^^^^^^^^^^^^^^^^^^^
File "/local/home/svraster/src/cameras.py", line 166, in init
self.sparse_uv = torch.tensor(sparse_uv, dtype=torch.float32, device="cpu")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: must be real number, not NoneType

@Atehortuajf
Copy link

I have the same stack trace when trying to train my own dataset generated from the InstantNGP colmap2nerf.py script. Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants