We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6bbefb + bdcb5a7 commit 0af094dCopy full SHA for 0af094d
scripts/run.py
@@ -282,7 +282,14 @@ def get_scene(scene):
282
print(args.screenshot_frames)
283
for idx in args.screenshot_frames:
284
f = ref_transforms["frames"][int(idx)]
285
- cam_matrix = f.get("transform_matrix", f["transform_matrix_start"])
+
286
+ if 'transform_matrix' in f:
287
+ cam_matrix = f['transform_matrix']
288
+ elif 'transform_matrix_start' in f:
289
+ cam_matrix = f['transform_matrix_start']
290
+ else:
291
+ raise KeyError("Missing both 'transform_matrix' and 'transform_matrix_start'")
292
293
testbed.set_nerf_camera_matrix(np.matrix(cam_matrix)[:-1,:])
294
outname = os.path.join(args.screenshot_dir, os.path.basename(f["file_path"]))
295
0 commit comments