mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +08:00
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
This commit is contained in:
parent
c80e5fd07a
commit
84fa966643
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
import math
|
import math
|
||||||
import warnings
|
import warnings
|
||||||
from typing import Callable, List, Optional, Sequence, Tuple, Union
|
from typing import List, Optional, Sequence, Tuple, Union
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
@ -1851,7 +1851,7 @@ def get_screen_to_ndc_transform(
|
|||||||
return transform
|
return transform
|
||||||
|
|
||||||
|
|
||||||
def try_get_projection_transform(cameras, kwargs) -> Optional[Callable]:
|
def try_get_projection_transform(cameras: CamerasBase, kwargs) -> Optional[Transform3d]:
|
||||||
"""
|
"""
|
||||||
Try block to get projection transform.
|
Try block to get projection transform.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user