Coder Social home page Coder Social logo

calamari-eval: unknown arguments about calamari HOT 6 OPEN

bertsky avatar bertsky commented on July 18, 2024
calamari-eval: unknown arguments

from calamari.

Comments (6)

bertsky avatar bertsky commented on July 18, 2024

Also: calamari-eval does not exit with non-zero in case of such errors.

from calamari.

andbue avatar andbue commented on July 18, 2024

This is really weird. Maybe the number of files in hsbfraktur.val is too large for the shell? Could you please try
calamari-eval --checkpoint hsbfraktur.cala/best.ckpt.json --gt.preload false --n_worst_lines 10 --gt.texts "/dev/shm/hsbfraktur.val/*.gt.txt" --evaluator.progress_bar false to see if resolving the wildcard in python helps?

from calamari.

bertsky avatar bertsky commented on July 18, 2024

Sry, I should have quoted properly. Yes, the file paths after expanding the glob expression would never fit into a memory page. So I always pass it as a glob to Calamari.

It turns out that --n_worst_lines 10 was the culprit.

Also in Calamari 1.0.5 BTW.

from calamari.

bertsky avatar bertsky commented on July 18, 2024

Other options that are reported by --help but do not seem to work:
--gt.xml_files and --pred.xml_files.

I get:

Unknown Arguments --gt.xml_files ...
Possible alternatives:
	--gt.xml_files ==> --gt.channels, --gt.texts, --n_worst_lines

from calamari.

andbue avatar andbue commented on July 18, 2024

Are you sure about that? calamari-eval --help on current master should not show the --gt.xml_files, only calamari-eval --gt PageXML --help shows the options relevant for PAGE.

from calamari.

bertsky avatar bertsky commented on July 18, 2024

Other options that are reported by --help but do not seem to work:
--gt.xml_files and --pred.xml_files.

Are you sure about that? calamari-eval --help on current master should not show the --gt.xml_files, only calamari-eval --gt PageXML --help shows the options relevant for PAGE.

Oh, I see! I had no idea these were nested, dependent options. It's a great way to encapsulate complexity in a CLI. Fantastic!

from calamari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.