Kohulan / DECIMER-Image_Transformer

DECIMER: Deep Learning for Chemical Image Recognition using Efficient-Net V2 + Transformer
MIT License
197 stars 51 forks source link

add token-level confidence scores #68

Closed OBrink closed 1 year ago

OBrink commented 1 year ago

I have added the confidence score functionality. I simply added a Softmax activation to the last layer of the Transformer decoder and now use the values that are generated for a token-level confidence estimation.

TODO (I would do it myself, but I don't think I have access to the Zenodo repository):

I'm not sure if a draft PR triggers Github actions; if it does, I apologise for the failed test notifications. The tests are only going to pass when the updated repacked model is included.