aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 647 forks source link

ABCNet data clockwise ? #622

Open Micla-SHL opened 11 months ago

Micla-SHL commented 11 months ago
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 https://github.com/aim-uofa/AdelaiDet/issues/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 commented 11 months ago

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

Micla-SHL commented 11 months ago

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