pytorch-i3d
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
No description provided. @piergiaj @aia39 Hi,have you solved the problem?Could you tell me the solution?Thanks!
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()