Skip to content

Commit 7ab0610

Browse files
committed
fix roma model url, switch to full version for training
1 parent ed5a980 commit 7ab0610

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

experiments/train_roma.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,8 @@ def train(args):
269269

270270
extredata_benchmark = MixedDenseBenchmark(
271271
h=h, w=w, num_samples=1000, dataset="extredata")
272-
273-
# TODO: remove constraint after megadepth uploaded
274-
if not args.use_pretained_roma:
275-
megadepth_benchmark = MixedDenseBenchmark(
276-
h=h, w=w, num_samples=1000, dataset="megadepth")
272+
megadepth_benchmark = MixedDenseBenchmark(
273+
h=h, w=w, num_samples=1000, dataset="megadepth")
277274

278275
# When finetuning, use extredata dataset only
279276
vis_dataset = "extredata" if args.use_pretained_roma else "mixed"
@@ -335,10 +332,7 @@ def train(args):
335332
if rank == 0:
336333
mixed_visualize_benchmark.benchmark(model)
337334
extredata_benchmark.benchmark(model)
338-
339-
# TODO: remove constraint after megadepth uploaded
340-
if not args.use_pretained_roma:
341-
megadepth_benchmark.benchmark(model)
335+
megadepth_benchmark.benchmark(model)
342336

343337

344338
if __name__ == "__main__":

romatch/models/model_zoo/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"romatch": {
77
# TODO: add the URL for the external model
88
"extre": "file:///home/local/Develop/ExtreRoMa/workspace/models/roma_extre.714912.pth",
9+
"outdoor": "https://github.com/Parskatt/storage/releases/download/roma/roma_outdoor.pth",
910
},
1011
"dinov2": "https://dl.fbaipublicfiles.com/dinov2/dinov2_vitl14/dinov2_vitl14_pretrain.pth",
1112
}

0 commit comments

Comments
 (0)