test_mega1500_poselib.py 572 B

1234567891011121314
  1. from romatch.benchmarks import Mega1500PoseLibBenchmark
  2. def test_mega1500_poselib(model, name):
  3. mega1500_benchmark = Mega1500PoseLibBenchmark("data/megadepth")
  4. mega1500_results = mega1500_benchmark.benchmark(model, model_name=name)
  5. return mega1500_results
  6. if __name__ == "__main__":
  7. from romatch import roma_outdoor
  8. device = "cuda"
  9. model = roma_outdoor(device = device, coarse_res = 672, upsample_res = 1344, use_custom_corr=True)
  10. experiment_name = "roma_latest"
  11. results = test_mega1500_poselib(model, experiment_name)
  12. print(results)