Skip to content

Commit

Permalink
upgrade pyre version in fbcode/mapillary - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D46120702

fbshipit-source-id: bc82165733a63e53a01ac924ded4ba78e4193d3e
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed May 24, 2023
1 parent 5213d0f commit 69f16bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opensfm/synthetic_data/synthetic_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,14 @@ def create_reconstruction(
s_cameras,
) in enumerate(zip(rig_shots, rig_positions, rig_rotations, rig_cameras, cameras)):
add_shots_to_reconstruction(
# pyre-fixme[6]: For 1st argument expected `List[List[str]]` but got
# `List[List[Tuple[str, str]]]`.
s_rig_shots,
# pyre-fixme[6]: For 2nd argument expected `List[ndarray]` but got
# `ndarray`.
s_rig_positions,
# pyre-fixme[6]: For 3rd argument expected `List[ndarray]` but got
# `ndarray`.
s_rig_rotations,
s_rig_cameras,
s_cameras,
Expand Down
4 changes: 4 additions & 0 deletions opensfm/synthetic_data/synthetic_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ def add_rig_camera_sequence(
for j, (rig_camera_p, rig_camera_r) in enumerate(
zip(relative_positions, relative_rotations)
):
# pyre-fixme[6]: For 1st argument expected `ndarray` but got `List[float]`.
pose_rig_camera = pygeometry.Pose(rig_camera_r)
# pyre-fixme[6]: For 1st argument expected `ndarray` but got `List[float]`.
pose_rig_camera.set_origin(rig_camera_p)

rotations = []
Expand All @@ -370,7 +372,9 @@ def add_rig_camera_sequence(
for i, (rig_camera_p, rig_camera_r) in enumerate(
zip(relative_positions, relative_rotations)
):
# pyre-fixme[6]: For 1st argument expected `ndarray` but got `List[float]`.
pose_rig_camera = pygeometry.Pose(rig_camera_r)
# pyre-fixme[6]: For 1st argument expected `ndarray` but got `List[float]`.
pose_rig_camera.set_origin(rig_camera_p)
rig_camera_id = f"RigCamera {rig_camera_id_shift + i}"
rig_camera = pymap.RigCamera(pose_rig_camera, rig_camera_id)
Expand Down

0 comments on commit 69f16bf

Please sign in to comment.