@@ -655,7 +655,7 @@ def rasterize_to_pixels_eval3d(
655655 # distortion
656656 radial_coeffs : Optional [Tensor ] = None , # [..., C, 6] or [..., C, 4]
657657 tangential_coeffs : Optional [Tensor ] = None , # [..., C, 2]
658- thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 2 ]
658+ thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 4 ]
659659 # rolling shutter
660660 rolling_shutter : RollingShutterType = RollingShutterType .GLOBAL ,
661661 viewmats_rs : Optional [Tensor ] = None , # [..., C, 4, 4]
@@ -714,7 +714,7 @@ def rasterize_to_pixels_eval3d(
714714 tangential_coeffs = tangential_coeffs .contiguous ()
715715
716716 if thin_prism_coeffs is not None :
717- assert thin_prism_coeffs .shape == batch_dims + (C , 2 ), thin_prism_coeffs .shape
717+ assert thin_prism_coeffs .shape == batch_dims + (C , 4 ), thin_prism_coeffs .shape
718718 thin_prism_coeffs = thin_prism_coeffs .contiguous ()
719719
720720 if viewmats_rs is not None :
@@ -1129,7 +1129,7 @@ def fully_fused_projection_with_ut(
11291129 # distortion
11301130 radial_coeffs : Optional [Tensor ] = None , # [..., C, 6] or [..., C, 4]
11311131 tangential_coeffs : Optional [Tensor ] = None , # [..., C, 2]
1132- thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 2 ]
1132+ thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 4 ]
11331133 # rolling shutter
11341134 rolling_shutter : RollingShutterType = RollingShutterType .GLOBAL ,
11351135 viewmats_rs : Optional [Tensor ] = None , # [..., C, 4, 4]
@@ -1159,7 +1159,7 @@ def fully_fused_projection_with_ut(
11591159 if tangential_coeffs is not None :
11601160 assert tangential_coeffs .shape == batch_dims + (C , 2 ), tangential_coeffs .shape
11611161 if thin_prism_coeffs is not None :
1162- assert thin_prism_coeffs .shape == batch_dims + (C , 2 ), thin_prism_coeffs .shape
1162+ assert thin_prism_coeffs .shape == batch_dims + (C , 4 ), thin_prism_coeffs .shape
11631163 if viewmats_rs is not None :
11641164 assert viewmats_rs .shape == batch_dims + (C , 4 , 4 ), viewmats_rs .shape
11651165
@@ -1349,7 +1349,7 @@ def forward(
13491349 # distortion
13501350 radial_coeffs : Optional [Tensor ] = None , # [..., C, 6] or [..., C, 4]
13511351 tangential_coeffs : Optional [Tensor ] = None , # [..., C, 2]
1352- thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 2 ]
1352+ thin_prism_coeffs : Optional [Tensor ] = None , # [..., C, 4 ]
13531353 # rolling shutter
13541354 rolling_shutter : RollingShutterType = RollingShutterType .GLOBAL ,
13551355 viewmats_rs : Optional [Tensor ] = None , # [..., C, 4, 4]
0 commit comments