the-full-stack / fsdl-text-recognizer-2021-labs

Complete deep learning project developed in Full Stack Deep Learning, Spring 2021
https://bit.ly/berkeleyfsdl
MIT License
452 stars 281 forks source link

fix error: get accuracy in ctc loss #40

Open pyy0715 opened 3 years ago

pyy0715 commented 3 years ago

In this lab3, we will experiment with loss through Cross-Entropy and CTC. In the case of CE, there is no error in executing the implemented code but in the case of CTC, an error occurs in obtaining acc as it inherits BaseLitModel because greedy_decoder Therefore, in order to see acc correctly in CTC, need to override the inherited function.