Skip to content

Commit

Permalink
Fix HMCN evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
MagiaSN committed Apr 13, 2022
1 parent 2737962 commit 49b10e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def eval(conf):
standard_labels = []
evaluator = cEvaluator(conf.eval.dir)
for batch in test_data_loader:
logits = model(batch)
if model_name == "HMCN":
(global_logits, local_logits, logits) = model(batch)
else:
logits = model(batch)
if not is_multi:
result = torch.nn.functional.softmax(logits, dim=1).cpu().tolist()
else:
Expand Down

0 comments on commit 49b10e8

Please sign in to comment.