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

Missing Models #98

Closed
Schneipi opened this issue Feb 20, 2023 · 8 comments
Closed

Missing Models #98

Schneipi opened this issue Feb 20, 2023 · 8 comments

Comments

@Schneipi
Copy link

Since there are no models hosted on https://ocr-d-repo.scc.kit.edu, does anyone know where we can access them now? More specifically, I would want to use:

  • latest_net_G.pth
  • block_segmentation_weights.h5
  • mapping_densenet.pickle

The URLs are outdated here: https://github.com/OCR-D/core/blob/master/ocrd/ocrd/resource_list.yml

@cneud
Copy link
Member

cneud commented Feb 22, 2023

@Schneipi I've added the trained models to the latest release here:
https://github.com/OCR-D/ocrd_anybaseocr/releases/tag/v1.8.2.

@Schneipi Schneipi reopened this Feb 22, 2023
@Schneipi
Copy link
Author

Schneipi commented Feb 22, 2023

@cneud thanks!

What about mapping_densenet.pickle? It seems to be required for ocrd-anybaseocr-layout-analysis. Running ocrd resmgr download ocrd-anybaseocr-layout-analysis '*' does not download the file and therefore ocrd-anybaseocr-layout-analysis throws an UnpicklingError.

seg_model.hdf5, provided with the latest release, seems to concern ocrd-anybaseocr-tiseg, if I'm not mistaken.

@cneud
Copy link
Member

cneud commented Feb 22, 2023

@Schneipi You are right, there seem to be more required models ;)

For mapping_densenet.pickle, there is a Tensorflow SavedModel version for this according to resource_list.yml at https://ocr-d.kba.cloud/structure_analysis.tar.gz (but which I am not sure is identical/working).

[Edit: as it turns out, structure_analysis.h5 is just another required model, but no replacement for mapping_densenet.pickle.]

Unfortunately I don't have a copy of mapping_densenet.pickle from https://ocr-d-repo.scc.kit.edu/models/dfki/layoutAnalysis/mapping_densenet.pickle...

@kba
Copy link
Member

kba commented Feb 22, 2023

We do have a copy of all the models, @tdoan2010 knows where to find them, we will find a more permanent place for them and update the resource_list.yml later this week, I'll keep you posted.

@tdoan2010
Copy link

tdoan2010 commented Feb 28, 2023

Hi, yes, I have a copy of all models. And I guess here is the mapping_densenet.pickle that you're looking for.

@cneud
Copy link
Member

cneud commented Feb 28, 2023

That mapping_densenet.pickle looks suspicious as the file size is less than 1 kB...

@kba
Copy link
Member

kba commented Feb 28, 2023

That mapping_densenet.pickle looks suspicious as the file size is less than 1 kB...

IIRC this was just pickled dict mapping network outputs to region types, so the small file size tracks.

@cneud
Copy link
Member

cneud commented Feb 28, 2023

IIRC this was just pickled dict mapping network outputs to region types

I see, thx. Then I will also add the file to the release.

kba added a commit that referenced this issue Mar 2, 2023
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

4 participants