Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to ruff with linting #88

Merged
merged 10 commits into from
Oct 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting.
B1ueber2y committed Oct 19, 2024
commit 3b27f5ca9fe8b979c90c3b455abc8a9015338c30
4 changes: 1 addition & 3 deletions scripts/aachen_undistort.py
Original file line number Diff line number Diff line change
@@ -60,9 +60,7 @@ def process(image_list, cameras):
assert camera_undistorted.K[0, 0] == camera_undistorted.K[1, 1]
fx = camera_undistorted.K[0, 0]
cx, cy = camera_undistorted.K[0, 2], camera_undistorted.K[1, 2]
f.write(
f"{imname_undist} SIMPLE_PINHOLE {w} {h} {fx} {cx} {cy}\n"
)
f.write(f"{imname_undist} SIMPLE_PINHOLE {w} {h} {fx} {cx} {cy}\n")


if __name__ == "__main__":
4 changes: 1 addition & 3 deletions scripts/tnt_colmap_runner.py
Original file line number Diff line number Diff line change
@@ -21,9 +21,7 @@
os.makedirs(dense_folder)
database_path = os.path.join(output_folder, "database.db")

cmd = (
f"colmap feature_extractor --database_path {database_path} --image_path {input_folder}"
)
cmd = f"colmap feature_extractor --database_path {database_path} --image_path {input_folder}"
print(cmd)
os.system(cmd)
cmd = f"colmap exhaustive_matcher --database_path {database_path}"