nerfacc
nerfacc copied to clipboard
Failed to read the internal and external parameters of the unbounded scene camera
Warning: image_path not found for reconstruction
Traceback (most recent call last):
File "examples/train_ngp_nerf.py", line 102, in
Hi this is the issue of loading nerf 360 dataset with the 3rd-party library pycolmap
. Maybe the data is corrupted? I'm not sure what I can help you with in this case.
Hi this is the issue of loading nerf 360 dataset with the 3rd-party library
pycolmap
. Maybe the data is corrupted? I'm not sure what I can help you with in this case.
Sorry, I checked the code, and the result is that the dataset is missing the project.ini file
I came from https://jonbarron.info/mipnerf360/ Downloaded 360_ V2 dataset, but the file does not contain project.ini,Please check the integrity of the dataset.
I'm not sure if the project.ini
file is really needed. I don't have this file neither but I can run the code without problems.
change the char 'L' and 'IiLL' to 'Q' and 'IiQQ', It can be solved. The modified code in scene_manager.py:
def _load_cameras_bin(self, input_file): self.cameras = OrderedDict()
with open(input_file, 'rb') as f:
num_cameras = struct.unpack('Q', f.read(8))[0]
for _ in range(num_cameras):
camera_id, camera_type, w, h = struct.unpack('IiQQ', f.read(24))
num_params = Camera.GetNumParams(camera_type)
params = struct.unpack('d' * num_params, f.read(8 * num_params))
self.cameras[camera_id] = Camera(camera_type, w, h, params)
self.last_camera_id = max(self.last_camera_id, camera_id)