Skip to content

Commit

Permalink
Merge pull request #5 from Angtian/Angtian-patch-1
Browse files Browse the repository at this point in the history
Update nemo.py
  • Loading branch information
Angtian authored Aug 29, 2023
2 parents 74118d2 + 9b4ea74 commit 77ff5d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nemo/models/nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ def evaluate(self, sample, debug=False):
for i, pred in enumerate(preds):
if "azimuth" in sample and "elevation" in sample and "theta" in sample:
pose_error_ = pose_error({k: sample[k][i] for k in ["azimuth", "elevation", "theta"]}, pred["final"][0])
if CATEGORIES.index(self.cate) == sample["label"][i]:
pred["pose_error"] = pose_error_
pred["pose_error"] = pose_error_
if self.training_params.classification:
# print(pred['final'][0]['score'])
classification_result[sample['this_name'][i]] = (pred['final'][0]['score'], pose_error_)
Expand Down

0 comments on commit 77ff5d6

Please sign in to comment.