salaniz / pytorch-gve-lrcn

PyTorch implementations for "Generating Visual Explanations" (GVE) and "Long-term Recurrent Convolutional Networks" (LRCN)
MIT License
92 stars 22 forks source link

Fixed: Evaluation Accuracy is shown zero[Result value is always zero] #10

Closed muneebable closed 5 years ago

muneebable commented 5 years ago

Evaluation Accuracy value shown in integer(so the result value is always zero), now showing in float

salaniz commented 5 years ago

Thanks for raising the issue. It seems that it does not properly report the evaluation accuracy because result[1] is a tensor and not a primitive value. Python 3 should automatically convert to float when both are values, even if they are integers. I will make sure that it's not a tensor in an upcoming commit.