Closed mikegerber closed 5 years ago
Thank you for letting me know. I'm getting some coffee and will look into this.
I just pushed a correction. Note that the new sample CNN has been trained for only one epoch - I'll upload a better one (and English-speaking) later. Can you try to run the test again to see if it works on other machines than mine? It should output something like "DEBUG ocrd_typegroups_classifier - Detected fraktur:27, ..."
It works with torch 1.1.0 now, but needs an updated dependency in requirements.txt
, I'll submit a PR in a second :)
My make test
output with master:
16:16:48.454 DEBUG ocrd_typegroups_classifier - Detected fraktur:27, gotico_antiqua:21, rotunda:20, antiqua:18, hebrew:9, griechisch:4, nicht_schrift:0
The text of pembroke_werke_1766 seems to be indeed written in Fraktur, as there are some kinds of "elephant trunks", so although it was trained for only one epoch, this network processed the page and gave a correct answer for the most probable font group. The issue is then solved, thank you again for letting me know about it :+1:
Current master's "make test" fails when torch 1.1.0 is installed:
The workaround I'm using now is to install torch < 1.1.0: