Giter Club home page Giter Club logo

dudeeval's Introduction

DUDEeval

This repository will help participants of DUDE @ICDAR2023 to set up their submission and validate results on sample data.

Installation

The scripts require python >= 3.8 to run. We will create a fresh virtualenvironment in which to install all required packages.

mkvirtualenv -p /usr/bin/python3 DUDEeval

Using poetry and the readily defined pyproject.toml, we will install all required packages

workon DUDEeval 
pip3 install poetry
poetry install

Way of working

Open a terminal in the directory and run the command:

python3 evaluate_submission.py -g=gt/DUDE_demo_gt.json -s=submissions/DUDE_demo_submission_perfect.json

parameters:

-g: Path of the Ground Truth file. The Ground Truth file is the one provided for the competition. You will be able to get it on the Downloads page of the Task in the Competition portal.

-s: Path of your method's results file.

Optional parameters:

-t: ANLS threshold. By default 0.5 is used. This can be used to check the tolerance to OCR errors. See Scene-Text VQA paper for more info.

-a: Boolean to get the scores break down by types. The ground truth file is required to have such information (currently is not available to the public).

-o: Path to a directory where to copy the file 'results.json' that contains per-sample results.

-c: Measure ECE for scoring calibration of answer confidences

Bonus:

To pretty print a JSON submission file you can use: python -m json.tool file.json

dudeeval's People

Contributors

jordy-vl avatar

Stargazers

Jonas Grebe avatar Peer David avatar Jarvis avatar

Watchers

 avatar

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.