Skip to content

Commit

Permalink
figure out pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Apr 7, 2024
1 parent 49a52df commit b28a8bb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion opensfm/actions/extract_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def run_dataset(data: DataSetBase) -> None:
"""Extract metadata from images' EXIF tag."""

input("Press Enter to continue ")
exif_overrides = {}
if data.exif_overrides_exists():
exif_overrides = data.load_exif_overrides()
Expand Down
1 change: 1 addition & 0 deletions opensfm/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def find_neighboring_images(
for track in tracks:
if track in reconstruction.points:
p = reconstruction.points[track].coordinates
breakpoint()
theta = angle_between_points(p, C1, C2)
if theta > theta_min and theta < theta_max:
score += 1
Expand Down
2 changes: 1 addition & 1 deletion opensfm/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def triangle_mesh(
return [], []

shot = r.shots[shot_id]

breakpoint()
if shot.camera.projection_type in [
"perspective",
"brown",
Expand Down
2 changes: 1 addition & 1 deletion opensfm/reconstruction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pyre-unsafe
"""Incremental reconstruction pipeline"""

import os
import datetime
import enum
import logging
Expand Down
2 changes: 0 additions & 2 deletions opensfm/test/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def test_run_all(tmpdir) -> None:
check_reconstruction(data)
check_prior(data, output_rec_path)

test_run_all("data")

def check_reconstruction(data: dataset.DataSet) -> None:
reconstruction = data.load_reconstruction()
assert len(reconstruction[0].shots) == 3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from sphinx.setup_command import BuildDoc
from wheel.bdist_wheel import bdist_wheel

input("Press Enter to continue: ")
VERSION = (0, 5, 2)


Expand All @@ -35,6 +34,7 @@ def configure_c_extension():
"cmake",
"../opensfm/src",
"-DPYTHON_EXECUTABLE=" + sys.executable,
#"-DCMAKE_BUILD_TYPE=Debug . -B cmake_build"
]
if sys.platform == "win32":
cmake_command += [
Expand Down

0 comments on commit b28a8bb

Please sign in to comment.