Files
MultimodalOCR/OCRBench_v2/eval_scripts/spotting_eval/readme.txt
2024-12-30 19:30:31 +08:00

26 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

INSTRUCTIONS FOR THE STANDALONE SCRIPTS
Requirements:
- Python version 3.
- Each Task requires different Python modules. When running the script, if some module is not installed you will see a notification and installation instructions.
Procedure:
Download the ZIP file for the requested script and unzip it to a directory.
Open a terminal in the directory and run the command:
python script.py g=gt.zip s=submit.zip
If you have already installed all the required modules, then you will see the methods results or an error message if the submitted file is not correct.
If a module is not present, you should install them with PIP: pip install 'module'
In case of Polygon module, use: 'pip install Polygon3'
parameters:
-g: Path of the Ground Truth file. In most cases, the Ground Truth will be included in the same Zip file named 'gt.zip', gt.txt' or 'gt.json'. If not, you will be able to get it on the Downloads page of the Task.
-s: Path of your method's results file.
Optional parameters:
-o: Path to a directory where to copy the file results.zip that contains per-sample results.
-p: JSON string parameters to override the script default parameters. The parameters that can be overrided are inside the function 'default_evaluation_params' located at the begining of the evaluation Script.
Example: python script.py g=gt.zip s=submit.zip o=./ -p={\"IOU_CONSTRAINT\":0.8}