Evaluating custom trained model #1827
-
Hi, I am trained a model on my custom dataset using "master" architecture. The results during training are promising on the validation dataset. I have written a script to run prediction on my test set with the new custom trained model. I was curious if there is some script already existing where I could pass the trained model path and test set path which then does the complete evaluation on the test set? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @sneakybatman 👋 , We have an script for E2E evaluation here: https://github.com/mindee/doctr/blob/main/scripts/evaluate.py Currently designed to work with our ready to use built-in datasets but you could easily modify both scripts to work with your custom model / dataset Best, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the direction @felixdittrich92 . I adapted it to use my dataset and it works. Happy Holidays :) |
Beta Was this translation helpful? Give feedback.
Hi @sneakybatman 👋 ,
We have an script for E2E evaluation here: https://github.com/mindee/doctr/blob/main/scripts/evaluate.py
And only for recognition here:
https://github.com/mindee/doctr/blob/main/references/recognition/evaluate_pytorch.py
Currently designed to work with our ready to use built-in datasets but you could easily modify both scripts to work with your custom model / dataset
Best,
Felix :)