pytorch-i3d icon indicating copy to clipboard operation
pytorch-i3d copied to clipboard

How to get the prediction value or accuracy?We get only loss from here but we also need to know accuracy

Open aia39 opened this issue 5 years ago • 2 comments

aia39 avatar Dec 05 '19 09:12 aia39

No description provided. @piergiaj @aia39 Hi,have you solved the problem?Could you tell me the solution?Thanks!

ciwei123 avatar Mar 30 '20 02:03 ciwei123

  acc = 100 * (torch.max(per_frame_logits, dim=2)[0].detach().argmax(1) == torch.max(labels, dim=2)[0]).detach().argmax(1).cpu().numpy().mean()

ZubairKhan001 avatar Oct 09 '21 18:10 ZubairKhan001