Skip to content

Commit 84fa966

Browse files
davidsonicfacebook-github-bot
authored andcommitted
Fix the typing for a Camera helper function
Summary: Fixed the typing for try_get_projection_transform. Reviewed By: kjchalup Differential Revision: D39211811 fbshipit-source-id: ef05c6b545831d1a9f3c754aeb02fb9776e360ed
1 parent c80e5fd commit 84fa966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch3d/renderer/cameras.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import math
88
import warnings
9-
from typing import Callable, List, Optional, Sequence, Tuple, Union
9+
from typing import List, Optional, Sequence, Tuple, Union
1010

1111
import numpy as np
1212
import torch
@@ -1851,7 +1851,7 @@ def get_screen_to_ndc_transform(
18511851
return transform
18521852

18531853

1854-
def try_get_projection_transform(cameras, kwargs) -> Optional[Callable]:
1854+
def try_get_projection_transform(cameras: CamerasBase, kwargs) -> Optional[Transform3d]:
18551855
"""
18561856
Try block to get projection transform.
18571857

0 commit comments

Comments
 (0)