Closed CozmoxJC closed 2 years ago
Hmm... The error messages are gone by now, It works again.
This time error occurs at the final block(extract colored mesh), while the others seem fine. The error messages are:
/home/mea303/anaconda3/envs/nerf_pl/lib/python3.7/site-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Predicting occupancy ...
0%| | 0/4096 [00:00<?, ?it/s]
Traceback (most recent call last):
File "extract_color_mesh.py", line 136, in <module>
out_chunks += [nerf_fine(xyzdir_embedded)]
File "/home/mea303/anaconda3/envs/nerf_pl/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/mea303/Documents/Python/NeRF_project/nerf_pl-dev/models/nerf.py", line 100, in forward
torch.split(x, [self.in_channels_xyz, self.in_channels_dir], dim=-1)
File "/home/mea303/anaconda3/envs/nerf_pl/lib/python3.7/site-packages/torch/functional.py", line 156, in split
return tensor.split(split_size_or_sections, dim)
File "/home/mea303/anaconda3/envs/nerf_pl/lib/python3.7/site-packages/torch/_tensor.py", line 518, in split
return super(Tensor, self).split_with_sizes(split_size, dim)
RuntimeError: start (0) + length (63) exceeds dimension size (42).
Hi, I corrected the issue #114 and also the corresponding code in extract_color_mesh.py
. Can you pull the latest code and try again? I verified that it worked for lego
scene.
Yes, It works now with the latest code. Thanks for your reply and hard work !!!
I tried to extract the mesh with the ipynb code, and have the same error messages while searching tight bound of the object as #114 mentioned.
But after I changed two lines of the second block into :
It showed up the following error messages instead:
May I ask how do I fix this problem ?