feat: show NOT_FOUND prob. in detail informations
This commit is contained in:
parent
de3326ae85
commit
924cfe9b43
@ -416,13 +416,14 @@ class GMapObjectNavAgent(Seq2SeqAgent):
|
||||
else:
|
||||
og = None
|
||||
|
||||
|
||||
# 如果有找到,og 會是 object id
|
||||
# 如果是 not found,og 會是 -1
|
||||
# 如果這個 viewpoint 看不到物件,og 會是 None
|
||||
gmap.node_stop_scores[i_vp] = {
|
||||
'stop': nav_probs[i, 0].data.item(),
|
||||
'og': og,
|
||||
'og_details': {'objids': i_objids, 'logits': i_obj_logits[:len(i_objids)]},
|
||||
'og_details': {'objids': i_objids, 'logits': torch.cat([i_obj_logits[:len(i_objids)], i_obj_logits[[-1]] ], dim=0)},
|
||||
}
|
||||
|
||||
if train_ml is not None:
|
||||
|
||||
@ -71,7 +71,7 @@ def parse_args():
|
||||
parser.add_argument('--test', action='store_true', default=False)
|
||||
parser.add_argument("--submit", action='store_true', default=False)
|
||||
parser.add_argument('--no_backtrack', action='store_true', default=False)
|
||||
parser.add_argument('--detailed_output', action='store_true', default=False)
|
||||
parser.add_argument('--detailed_output', action='store_true', default=True)
|
||||
|
||||
# Training Configurations
|
||||
parser.add_argument(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user