Merge pull request #15 from dkasuga/colmap_normalize_bugfix
fix bugs about normalizing after COLMAP process
This commit is contained in:
commit
03741cf85a
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def get_tf_cams(cam_dict, target_radius=1.):
|
||||||
return center.flatten(), diagonal
|
return center.flatten(), diagonal
|
||||||
|
|
||||||
center, diagonal = get_center_and_diag(cam_centers)
|
center, diagonal = get_center_and_diag(cam_centers)
|
||||||
radius = diagonal / 2. * 1.1
|
radius = diagonal * 1.1
|
||||||
|
|
||||||
translate = -center
|
translate = -center
|
||||||
scale = target_radius / radius
|
scale = target_radius / radius
|
||||||
|
|
Loading…
Reference in a new issue