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

Error when fine tuning the horizontal text detection #2392

Open
aljie28 opened this issue Jul 24, 2023 · 1 comment
Open

Error when fine tuning the horizontal text detection #2392

aljie28 opened this issue Jul 24, 2023 · 1 comment

Comments

@aljie28
Copy link

aljie28 commented Jul 24, 2023

Hi, I encounter this error when I am running the fine-tuning step in https://github.com/openvinotoolkit/training_extensions/tree/misc/models/object_detection/model_templates/horizontal-text-detection Step 4.b. Evaluate

Traceback (most recent call last):
File "/home/tham/training_extensions/external/mmdetection/tools/test.py", line 260, in
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.2'
main()
File "/home/tham/training_extensions/external/mmdetection/tools/test.py", line 175, in main
dataset = build_dataset(cfg.data.test)
File "/home/tham/training_extensions/external/mmdetection/mmdet/datasets/builder.py", line 108, in build_dataset
raise RuntimeError(f'Failed to find annotation files that match pattern: '
RuntimeError: Failed to find annotation files that match pattern: /data/horizontal_text_detection/annotation.json
Traceback (most recent call last):
File "eval.py", line 46, in
main()
File "eval.py", line 42, in main
evaluator(**eval_args)
File "/home/tham/training_extensions/ote/ote/modules/evaluators/base.py", line 38, in call
self._evaluate_internal(config, snapshot, out, update_config, metrics_functions, **kwargs)
File "/home/tham/training_extensions/ote/ote/modules/evaluators/base.py", line 62, in _evaluate_internal
metrics.extend(func(**metric_args))
File "/home/tham/training_extensions/ote/ote/metrics/horizontal_text_detection/horizontal_text_detection.py", line 68, in coco_eval
'key': 'f1', 'value': hmean[2] * 100, 'unit': '%', 'display_name': 'F1-score'
IndexError: list index out of range

Can anyone help me to verify, thank you.

@sungmanc
Copy link
Contributor

RuntimeError: Failed to find annotation files that match pattern: /data/horizontal_text_detection/annotation.json
Please change the dataset that you used. Since we don't guarantee the misc branch, it could include the outdated contents.

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