You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to upload a full file in early April. If you are in a hurry, here are some basic functions and it should be fairly easy to load BLEFF camera parameters.
defload_blender_gt_meta(gt_json):
withopen(gt_json, 'r') asjson_f:
gt_json=json.load(json_f)
fov_x=gt_json['cam_angle_x'] # fov in radfov_y=gt_json['cam_angle_y'] # fov in radc2ws=np.array(gt_json['c2ws']).astype(np.float32) # (N, 4, 4)# centre posesc2ws, pose_avg=center_poses(c2ws[:, :3]) # (N, 3, 4)c2ws=convert3x4_4x4(c2ws) # (N, 4, 4)# scale gt to a unit spherec2ws[:, :3, 3] /=pts_dist_max(c2ws[:, :3, 3])
c2ws[:, :3, 3] *=2.0results= {
'fov_x': fov_x,
'fov_y': fov_y,
'c2ws': c2ws# (N_gt, 4, 4)
}
returnresultsdeffov2focal_pix(fov, hw):
""" :param fov: float or double :param hw: float or double :return: float or double """focal_pix=0.5*hw/np.tan(fov/2.0)
returnfocal_pix
Hello @ziruiw-dev,
could you please provide the BLEFF dataloader?
Thank you very much
BR