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

ABCNet data clockwise ? #622

Open
Micla-SHL opened this issue Oct 26, 2023 · 2 comments
Open

ABCNet data clockwise ? #622

Micla-SHL opened this issue Oct 26, 2023 · 2 comments

Comments

@Micla-SHL
Copy link

line: 42,31,88,31,135,31,182,31,182,60,135,60,88,60,42,60,####杰森柔声说
line2: 42,31,88,31,135,31,182,31,182,60,135,60,88,60,42,60,####杰森柔声说
cors: ['42', '31', '88', '31', '135', '31', '182', '31', '182', '60', '135', '60', '88', '60', '42', '60']
points: [42.0, 31.0, 88.0, 31.0, 135.0, 31.0, 182.0, 31.0, 182.0, 60.0, 135.0, 60.0, 88.0, 60.0, 42.0, 60.0]
Traceback (most recent call last):
  File "main.py", line 19, in <module>
    res = e.evaluate()
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/text_evaluation.py", line 180, in evaluate
    text_result = self.evaluate_with_official_code(result_path, self._text_eval_gt_path)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/text_evaluation.py", line 169, in evaluate_with_official_code
    return text_eval_script.text_eval_main(det_file=result_path, gt_file=gt_path, is_word_spotting=self._word_spotting)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/text_eval_script.py", line 473, in text_eval_main
    return rrc_evaluation_funcs.main_evaluation(None,det_file, gt_file, default_evaluation_params,validate_data,evaluate_method)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/rrc_evaluation_funcs.py", line 418, in main_evaluation
    validate_data_fn(p['g'], p['s'], evalParams)  
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/text_eval_script.py", line 54, in validate_data
    rrc_evaluation_funcs.validate_lines_in_file_gt(k,gt[k],evaluationParams['CRLF'],evaluationParams['LTRB'],True)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/rrc_evaluation_funcs.py", line 109, in validate_lines_in_file_gt
    validate_tl_line_gt(line,LTRB,withTranscription,withConfidence,imWidth,imHeight)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/rrc_evaluation_funcs.py", line 138, in validate_tl_line_gt
    get_tl_line_values_gt(line,LTRB,withTranscription,withConfidence,imWidth,imHeight)   
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/rrc_evaluation_funcs.py", line 214, in get_tl_line_values_gt
    validate_clockwise_points(points)
  File "/home/micla/下载/evaluation_det_e2e_offline_v3/rrc_evaluation_funcs.py", line 336, in validate_clockwise_points
    assert(0),  ("Points are not clockwise. The coordinates of bounding quadrilaterals have to be given in clockwise order. Regarding the correct interpretation of 'clockwise' remember that the image coordinate system used is the standard one, with the image origin at the upper left, the X axis extending to the right and Y axis extending downwards.")
AssertionError: Points are not clockwise. The coordinates of bounding quadrilaterals have to be given in clockwise order. Regarding the correct interpretation of 'clockwise' remember that the image coordinate system used is the standard one, with the image origin at the upper left, the X axis extending to the right and Y axis extending downwards.

I'm trying my own dataset。I refer to #401
There is this error in the evaluation, which I can't understand. I think it's clockwise

@Yuliang-Liu Do you have time to look at this issue?

@Micla-SHL
Copy link
Author

截图 2023-10-26 21-47-25
This is contrary to what I understood, but I will try again

@Micla-SHL
Copy link
Author

eval process ok。 我英文不太好,作者你能有码表的制作规范吗 ? 我现在是将所需的中文字符直接修改self.CLABELS 我觉得这种方式不利于扩展字符。不方便。我直接按字符解析你提供的chn_cls_list 每一位都是数字。我担心按我自己理解的制作还有什么遗漏。有人能知道并提供的话将十分感

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

1 participant