Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine-tuned segmentation model fails to determine regions #621

Closed
fattynoparents opened this issue Jul 8, 2024 · 1 comment
Closed

Fine-tuned segmentation model fails to determine regions #621

fattynoparents opened this issue Jul 8, 2024 · 1 comment

Comments

@fattynoparents
Copy link

I have fine-tuned a segmentation model so that it could detect custom regions. I have successfully used the Segment command in eScriptorium with the new model and it found the regions quite well.
I now need to use the kraken command-line commands to find baselines and regions in many files, so I tried the following as a test:

 kraken -x -i 1.jpg 1.xml segment -bl -i ~/kraken-test/output_49.mlmodel 

I am getting the following messages and then a PageXML file is created:

Loading ANN /home/user/kraken-test/output_49.mlmodel ✓ 
Segmenting      ✓   

However, in the resulting PageXML file there are no region types, all text regions look like this:

<TextRegion id="region-id" custom="structure {type:;}"> 

How can I run the segmentation command including the detection of the regions?

@mittagessen
Copy link
Owner

mittagessen commented Jul 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants