Closed SHIBOYA closed 1 week ago
I resolved this error. Go to line 290 in "/root/4D-Rotor-Gaussians-main/nerfstudio/cameras/cameras.py" There should be line like,
raise ValueError(f"camera_extent must be None or a tensor, got {type(camera_extent)}")
change that line to
raise ValueError(f"batch_size must be None or a tensor, got {type(batch_size)}")
This should fix your issue.
If you cannot visualize this even after fixing this issue.
in the same file please change lines 123, 124 into the following lines,
camera_extent : Optional[Float[Tensor, "num_cameras"]] = torch.tensor(1.0),
batch_size:Optional[Int[Tensor, "num_cameras 1"]] = None
And this should work.
Cool!
Thank you for your discussion! The suggested changes on L123, 124, 290 of nerfstudio/cameras/cameras.py
have been committed.
Dear Fangyin,
I have encountered an issue. Below is the error message I received:
It appears that the
camera_extent
variable is not defined. Could you please provide guidance on how to resolve this issue or how to properly initialize thecamera_extent
variable?Thank you very much for your assistance.
Best regards!