Skip to content

Commit

Permalink
formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ueber2y committed Oct 19, 2024
1 parent 3b27f5c commit 586c5c0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ select = [
# isort
"I",
]
ignore = ["SIM117"]
ignore = ["SIM117", "F401"]

[lint.per-file-ignores]
"scripts/*.py" = ["E"]
2 changes: 1 addition & 1 deletion runners/rome16k/triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def parse_config():
cfg["list_path"] = args.list_path
cfg["model_path"] = args.model_path
cfg["info_path"] = args.info_path
if ("max_image_dim" not in cfg.keys()) or args.max_image_dim is not None:
if ("max_image_dim" not in cfg) or args.max_image_dim is not None:
cfg["max_image_dim"] = args.max_image_dim
# components
cfg["component_folder"] = args.component_folder
Expand Down
2 changes: 1 addition & 1 deletion runners/visualsfm_triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def parse_config():
cfg["vsfm_path"] = args.vsfm_path
cfg["nvm_file"] = args.nvm_file
cfg["info_path"] = args.info_path
if ("max_image_dim" not in cfg.keys()) or args.max_image_dim is not None:
if ("max_image_dim" not in cfg) or args.max_image_dim is not None:
cfg["max_image_dim"] = args.max_image_dim
return cfg

Expand Down
3 changes: 1 addition & 2 deletions scripts/eval_hypersim.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ def eval_hypersim(
[line.as_array() for line in outlier_lines]
)
limap.save_obj(
f"tmp/outliers_th_{threshold:.4f}.obj",
outlier_lines_np,
f"tmp/outliers_th_{threshold:.4f}.obj", outlier_lines_np
)


Expand Down
3 changes: 1 addition & 2 deletions scripts/eval_tnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ def eval_tnt(cfg, lines, ref_lines=None):
[line.as_array() for line in outlier_lines]
)
limapio.save_obj(
f"tmp/outliers_th_{threshold:.4f}.obj",
outlier_lines_np,
f"tmp/outliers_th_{threshold:.4f}.obj", outlier_lines_np
)


Expand Down

0 comments on commit 586c5c0

Please sign in to comment.