Skip to content

Commit

Permalink
eval: Fix index limits for eval
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Oct 3, 2024
1 parent d15f13e commit 9975c22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/evaluation/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"Agricultural Field": "outdoor0",
"Rhône Glacier": "rhone_flight"
},
"index": [[0, -1], [0, -1], [1205, 1505]],
"index": {
"maschinenhalle0": [0, -1],
"outdoor0": [0, -1],
"rhone_flight": [1205, 1505]
},
"networks": {
"Metric Depth \\cite{depthanythingv2}-S": "rgb_s_bs8_e9.pth",
"Metric Depth \\cite{depthanythingv2}-B": "rgb_b_bs4_e8.pth",
Expand Down
2 changes: 1 addition & 1 deletion scripts/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def setup_interface(self, config, scenario_key, network_key):
self.interface.set_criterion()

dataset_list = [config['scenarios'][scenario_key]]
index_list = config.get('index', None)
index_list = [config['index'][config["scenarios"][scenario_key]]]
self.loader, _ = self.interface.get_dataset_loader('val_all', self.datasets_dir, dataset_list, index_list)

def get_results_per_sample(self):
Expand Down

0 comments on commit 9975c22

Please sign in to comment.