Commit 84fa9666 authored by Jiali Duan's avatar Jiali Duan Committed by Facebook GitHub Bot
Browse files

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
parent c80e5fd0
......@@ -6,7 +6,7 @@
import math
import warnings
from typing import Callable, List, Optional, Sequence, Tuple, Union
from typing import List, Optional, Sequence, Tuple, Union
import numpy as np
import torch
......@@ -1851,7 +1851,7 @@ def get_screen_to_ndc_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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment