hikopensource / DAVAR-Lab-OCR

OCR toolbox from Davar-Lab
Apache License 2.0
738 stars 157 forks source link

自己数据训练报错,请教gt_masks 是如何计算的? #148

Open tianyongliu opened 1 year ago

tianyongliu commented 1 year ago

训练训练自己的数据报错:

File "/root/miniconda/envs/d2/lib/python3.7/site-packages/mmdet/models/detectors/base.py", line 181, in forward return self.forward_train(img, img_metas, kwargs) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/models/detectors/lgpma.py", line 134, in forward_train kwargs) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/models/roi_heads/lgpma_roi_head.py", line 86, in forward_train gt_masks, img_metas, gt_bboxes) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/models/roi_heads/lgpma_roi_head.py", line 133, in _mask_forward_train self.train_cfg, gt_bboxes) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py", line 107, in get_targets gt_lpma_hor, gt_lpma_ver = get_lpmasks(gt_masks, gt_bboxes) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/core/mask/lp_mask_target.py", line 30, in get_lpmasks gt_masks_temp = list(gt_masks_temp) File "/root/workspace/DAVAR-Lab-OCR-main/davarocr/davar_table/core/mask/lp_mask_target.py", line 55, in get_lpmask_single middle_x, middle_y = round(np.where(box_text == 1)[1].mean()), round(np.where(box_text == 1)[0].mean()) ValueError: cannot convert float NaN to integer

肉眼检查数据,没有看出有什么问题,涉及的代码段是这里:

def get_lpmask_single(gt_mask, gt_bbox): """Produce local pyramid mask according to gt_bbox and gt_mask ((for one image).

Args;
    gt_mask(BitmapMasks): masks of the text regions (for one image)
    gt_bbox(Tensor): (n x 4).bboxes of the aligned cells (for one image)

Returns;
    BitmapMasksTable;pyramid masks in horizontal direction (for one image)
    BitmapMasksTable;pyramid masks in vertical direction (for one image)
"""

(num, high, width) = gt_mask.masks.shape
mask_s1 = np.zeros((num, high, width), np.float32)
mask_s2 = np.zeros((num, high, width), np.float32)
for ind, box_text in zip(range(num), gt_mask.masks):
    left_col, left_row, right_col, right_row = list(map(float, gt_bbox[ind, 0:4]))
    x_min, y_min, x_max, y_max = ceil(left_col), ceil(left_row), ceil(right_col) - 1, ceil(right_row) - 1
    middle_x, middle_y = round(np.where(box_text == 1)[1].mean()), round(np.where(box_text == 1)[0].mean())

所以想问下,这个gt_mask是哪里计算的,是如何计算的,以便于我检查或者筛选自己的数据,谢谢!

tianyongliu commented 1 year ago

附上报错的原始数据,还未转化为Json之前的数据:

{'imgid': 1677570388612148, 'filename': '600383_20220425_4_pdlVEVET_P_48_T_1.png', 'split': 'train', 'html': {'cells': [{'tokens': ['', '项', '目', ''], 'bbox': [21.84, 8.343904377267279, 38.730000000000004, 16.47090437726729]}, {'tokens': ['', '项', '目', '进', '度', ''], 'bbox': [64.464, 3.5439043772672676, 81.354, 21.390904377267248]}, {'tokens': ['', '经', '营', '业', '态', ''], 'bbox': [91.94, 3.5439043772672676, 108.83, 21.390904377267248]}, {'tokens': ['', '权', '益', '比', '例', ''], 'bbox': [121.22, 3.5439043772672676, 138.10999999999999, 21.390904377267248]}, {'tokens': ['', '占', '地', '面', '积', ''], 'bbox': [157.46, 3.5439043772672676, 181.91, 21.390904377267248]}, {'tokens': ['', '规', '划', '计', '容', '建', '筑', '面', '积', ''], 'bbox': [193.34, 3.5439043772672676, 225.35, 21.390904377267248]}, {'tokens': ['', '总', '建', '筑', '面', '积', ''], 'bbox': [241.85, 3.5439043772672676, 266.29999999999995, 21.390904377267248]}, {'tokens': ['', '可', '租', '售', '面', '积', ''], 'bbox': [277.96999999999997, 3.5439043772672676, 309.97999999999996, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '新', '开', '工', '面', '积', ''], 'bbox': [320.45, 3.5439043772672676, 352.46, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '在', '建', '面', '积', ''], 'bbox': [368.81, 3.5439043772672676, 395.08, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '竣', '工', '面', '积', ''], 'bbox': [410.95, 3.5439043772672676, 437.2, 21.390904377267248]}, {'tokens': ['', '累', '计', '竣', '工', '面', '积', ''], 'bbox': [453.54999999999995, 3.5439043772672676, 477.99999999999994, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '签', '约', '面', '积', ''], 'bbox': [487.15, 3.5439043772672676, 513.4, 21.390904377267248]}, {'tokens': ['', '累', '计', '签', '约', '面', '积', ''], 'bbox': [524.35, 3.5439043772672676, 556.39, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '签', '约', '金', '额', ''], 'bbox': [565.7800000000001, 3.5439043772672676, 599.59, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '年', '结', '算', '面', '积', ''], 'bbox': [609.34, 3.5439043772672676, 641.35, 21.390904377267248]}, {'tokens': ['', '报', '告', '期', '末', '待', '结', '转', '面', '积', ''], 'bbox': [651.82, 0, 683.83, 26.310904377267263]}, {'tokens': ['', '2', '0', '2', '1', '年', '结', '算', '金', '额', ''], 'bbox': [694.4200000000001, 0, 720.69, 26.310904377267263]}, {'tokens': ['', '项', '目', '计', '划', '总', '投', '资', ''], 'bbox': [735.48, 3.5439043772672676, 767.49, 21.390904377267248]}, {'tokens': ['', '2', '0', '2', '1', '年', '实', '际', '投', '资', '额', ''], 'bbox': [777.96, 0, 802.4399999999999, 26.310904377267263]}, {'tokens': ['', '福', '州', '市', '都', '会', '之', '光', '花', '园', '二', '区', ''], 'bbox': [6.84, 29.58390437726723, 51.95808000000001, 47.43090437726727]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 34.50390437726725, 81.354, 42.63090437726726]}, {'tokens': ['', '住', '宅', ''], 'bbox': [91.94, 34.50390437726725, 108.83, 42.63090437726726]}, {'tokens': ['', '9', '8', '%', ''], 'bbox': [125.42000000000002, 34.71090437726724, 129.20000000000002, 42.27090437726724]}, {'tokens': ['', '4', '2', ',', '6', '6', '1', ''], 'bbox': [159.38, 34.71090437726724, 163.16, 42.27090437726724]}, {'tokens': ['', '8', '5', ',', '3', '1', '8', ''], 'bbox': [183.74, 34.71090437726724, 185.63, 42.27090437726724]}, {'tokens': ['', '1', '1', '4', ',', '7', '6', '3', ''], 'bbox': [227.21, 34.71090437726724, 229.1, 42.27090437726724]}, {'tokens': ['', '8', '2', ',', '8', '5', '8', ''], 'bbox': [268.13, 34.71090437726724, 270.02, 42.27090437726724]}, {'tokens': ['', '0', ''], 'bbox': [311.81, 34.71090437726724, 313.7, 42.27090437726724]}, {'tokens': ['', '8', '2', ',', '8', '5', '8', ''], 'bbox': [354.28999999999996, 34.71090437726724, 356.17999999999995, 42.27090437726724]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 34.71090437726724, 398.79999999999995, 42.27090437726724]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 34.71090437726724, 440.91999999999996, 42.27090437726724]}, {'tokens': ['', '2', '0', ',', '2', '9', '5', ''], 'bbox': [479.83, 34.71090437726724, 481.71999999999997, 42.27090437726724]}, {'tokens': ['', '2', '0', ',', '2', '9', '5', ''], 'bbox': [515.23, 34.71090437726724, 517.12, 42.27090437726724]}, {'tokens': ['', '2', '9', ',', '7', '1', '7', ''], 'bbox': [558.22, 34.71090437726724, 560.11, 42.27090437726724]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 34.71090437726724, 603.3100000000001, 42.27090437726724]}, {'tokens': ['', '2', '0', ',', '2', '9', '5', ''], 'bbox': [643.1800000000001, 34.71090437726724, 645.07, 42.27090437726724]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 34.71090437726724, 687.5500000000001, 42.27090437726724]}, {'tokens': ['', '1', '0', '7', ',', '8', '5', '0', ''], 'bbox': [722.52, 34.71090437726724, 724.41, 42.27090437726724]}, {'tokens': ['', '1', '8', ',', '2', '2', '3', ''], 'bbox': [769.32, 34.71090437726724, 771.21, 42.27090437726724]}, {'tokens': ['', '福', '州', '金', '地', '大', '境', '小', '区', ''], 'bbox': [6.84, 49.62390437726725, 51.95808000000001, 67.47090437726729]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 54.42390437726726, 81.354, 62.55090437726727]}, {'tokens': ['', '住', '宅', ''], 'bbox': [91.94, 54.42390437726726, 108.83, 62.55090437726727]}, {'tokens': ['', '9', '3', '%', ''], 'bbox': [125.42000000000002, 54.75090437726726, 129.20000000000002, 62.31090437726726]}, {'tokens': ['', '4', '8', ',', '5', '7', '6', ''], 'bbox': [159.38, 54.75090437726726, 163.16, 62.31090437726726]}, {'tokens': ['', '8', '2', ',', '5', '6', '6', ''], 'bbox': [183.74, 54.75090437726726, 185.63, 62.31090437726726]}, {'tokens': ['', '1', '0', '8', ',', '4', '9', '5', ''], 'bbox': [227.21, 54.75090437726726, 229.1, 62.31090437726726]}, {'tokens': ['', '7', '5', ',', '3', '7', '8', ''], 'bbox': [268.13, 54.75090437726726, 270.02, 62.31090437726726]}, {'tokens': ['', '7', '5', ',', '3', '7', '8', ''], 'bbox': [311.81, 54.75090437726726, 313.7, 62.31090437726726]}, {'tokens': ['', '7', '5', ',', '3', '7', '8', ''], 'bbox': [354.28999999999996, 54.75090437726726, 356.17999999999995, 62.31090437726726]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 54.75090437726726, 398.79999999999995, 62.31090437726726]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 54.75090437726726, 440.91999999999996, 62.31090437726726]}, {'tokens': ['', '2', '0', ',', '6', '3', '0', ''], 'bbox': [479.83, 54.75090437726726, 481.71999999999997, 62.31090437726726]}, {'tokens': ['', '2', '0', ',', '6', '3', '0', ''], 'bbox': [515.23, 54.75090437726726, 517.12, 62.31090437726726]}, {'tokens': ['', '3', '6', ',', '0', '0', '0', ''], 'bbox': [558.22, 54.75090437726726, 560.11, 62.31090437726726]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 54.75090437726726, 603.3100000000001, 62.31090437726726]}, {'tokens': ['', '2', '0', ',', '6', '3', '0', ''], 'bbox': [643.1800000000001, 54.75090437726726, 645.07, 62.31090437726726]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 54.75090437726726, 687.5500000000001, 62.31090437726726]}, {'tokens': ['', '1', '0', '8', ',', '4', '7', '4', ''], 'bbox': [722.52, 54.75090437726726, 724.41, 62.31090437726726]}, {'tokens': ['', '7', '1', ',', '8', '2', '2', ''], 'bbox': [769.32, 54.75090437726726, 771.21, 62.31090437726726]}, {'tokens': ['', '福', '州', '马', '尾', '金', '象', '公', '馆', ''], 'bbox': [6.84, 69.54390437726727, 51.95808000000001, 87.39090437726725]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 74.34390437726728, 81.354, 82.47090437726729]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 69.54390437726727, 108.83, 87.39090437726725]}, {'tokens': ['', '5', '0', '%', ''], 'bbox': [125.42000000000002, 74.67090437726728, 129.20000000000002, 82.23090437726728]}, {'tokens': ['', '2', '0', ',', '0', '6', '2', ''], 'bbox': [159.38, 74.67090437726728, 163.16, 82.23090437726728]}, {'tokens': ['', '4', '8', ',', '1', '4', '9', ''], 'bbox': [183.74, 74.67090437726728, 185.63, 82.23090437726728]}, {'tokens': ['', '6', '5', ',', '0', '7', '9', ''], 'bbox': [227.21, 74.67090437726728, 229.1, 82.23090437726728]}, {'tokens': ['', '4', '6', ',', '1', '1', '7', ''], 'bbox': [268.13, 74.67090437726728, 270.02, 82.23090437726728]}, {'tokens': ['', '4', '6', ',', '1', '1', '7', ''], 'bbox': [311.81, 74.67090437726728, 313.7, 82.23090437726728]}, {'tokens': ['', '4', '6', ',', '1', '1', '7', ''], 'bbox': [354.28999999999996, 74.67090437726728, 356.17999999999995, 82.23090437726728]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 74.67090437726728, 398.79999999999995, 82.23090437726728]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 74.67090437726728, 440.91999999999996, 82.23090437726728]}, {'tokens': ['', '6', '5', '2', ''], 'bbox': [479.83, 74.67090437726728, 481.71999999999997, 82.23090437726728]}, {'tokens': ['', '6', '5', '2', ''], 'bbox': [515.23, 74.67090437726728, 517.12, 82.23090437726728]}, {'tokens': ['', '1', ',', '0', '3', '6', ''], 'bbox': [558.22, 74.67090437726728, 560.11, 82.23090437726728]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 74.67090437726728, 603.3100000000001, 82.23090437726728]}, {'tokens': ['', '6', '5', '2', ''], 'bbox': [643.1800000000001, 74.67090437726728, 645.07, 82.23090437726728]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 74.67090437726728, 687.5500000000001, 82.23090437726728]}, {'tokens': ['', '7', '7', ',', '4', '4', '8', ''], 'bbox': [722.52, 74.67090437726728, 724.41, 82.23090437726728]}, {'tokens': ['', '5', '2', ',', '6', '2', '8', ''], 'bbox': [769.32, 74.67090437726728, 771.21, 82.23090437726728]}, {'tokens': ['', '福', '州', '市', '金', '地', '云', '镜', '小', '区', ''], 'bbox': [6.84, 89.49390437726726, 51.95808000000001, 107.3409043772673]}, {'tokens': ['', '前', '期', ''], 'bbox': [64.464, 94.41390437726727, 81.354, 102.54090437726728]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 89.49390437726726, 108.83, 107.3409043772673]}, {'tokens': ['', '1', '0', '0', '%', ''], 'bbox': [121.70000000000002, 94.62090437726727, 125.48000000000002, 102.18090437726727]}, {'tokens': ['', '1', '8', ',', '3', '6', '2', ''], 'bbox': [159.38, 94.62090437726727, 163.16, 102.18090437726727]}, {'tokens': ['', '3', '3', ',', '0', '5', '0', ''], 'bbox': [183.74, 94.62090437726727, 185.63, 102.18090437726727]}, {'tokens': ['', '4', '4', ',', '6', '1', '7', ''], 'bbox': [227.21, 94.62090437726727, 229.1, 102.18090437726727]}, {'tokens': ['', '3', '2', ',', '5', '0', '9', ''], 'bbox': [268.13, 94.62090437726727, 270.02, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [311.81, 94.62090437726727, 313.7, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [354.28999999999996, 94.62090437726727, 356.17999999999995, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 94.62090437726727, 398.79999999999995, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 94.62090437726727, 440.91999999999996, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [479.83, 94.62090437726727, 481.71999999999997, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [515.23, 94.62090437726727, 517.12, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [558.22, 94.62090437726727, 560.11, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 94.62090437726727, 603.3100000000001, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [643.1800000000001, 94.62090437726727, 645.07, 102.18090437726727]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 94.62090437726727, 687.5500000000001, 102.18090437726727]}, {'tokens': ['', '5', '1', ',', '7', '9', '7', ''], 'bbox': [722.52, 94.62090437726727, 724.41, 102.18090437726727]}, {'tokens': ['', '1', '4', ',', '0', '3', '5', ''], 'bbox': [769.32, 94.62090437726727, 771.21, 102.18090437726727]}, {'tokens': ['', '漳', '州', '都', '会', '之', '光', '北', '区', ''], 'bbox': [6.84, 109.41390437726727, 51.95808000000001, 127.26090437726725]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 114.33390437726723, 81.354, 122.46090437726724]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 109.41390437726727, 108.83, 127.26090437726725]}, {'tokens': ['', '4', '7', '%', ''], 'bbox': [125.42000000000002, 114.54090437726728, 129.20000000000002, 122.10090437726728]}, {'tokens': ['', '4', '5', ',', '2', '1', '9', ''], 'bbox': [159.38, 114.54090437726728, 163.16, 122.10090437726728]}, {'tokens': ['', '9', '0', ',', '4', '3', '7', ''], 'bbox': [183.74, 114.54090437726728, 185.63, 122.10090437726728]}, {'tokens': ['', '1', '1', '7', ',', '8', '5', '2', ''], 'bbox': [227.21, 114.54090437726728, 229.1, 122.10090437726728]}, {'tokens': ['', '8', '3', ',', '6', '9', '3', ''], 'bbox': [268.13, 114.54090437726728, 270.02, 122.10090437726728]}, {'tokens': ['', '8', '3', ',', '6', '9', '3', ''], 'bbox': [311.81, 114.54090437726728, 313.7, 122.10090437726728]}, {'tokens': ['', '8', '3', ',', '6', '9', '3', ''], 'bbox': [354.28999999999996, 114.54090437726728, 356.17999999999995, 122.10090437726728]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 114.54090437726728, 398.79999999999995, 122.10090437726728]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 114.54090437726728, 440.91999999999996, 122.10090437726728]}, {'tokens': ['', '4', '8', ',', '8', '2', '7', ''], 'bbox': [479.83, 114.54090437726728, 481.71999999999997, 122.10090437726728]}, {'tokens': ['', '4', '8', ',', '8', '2', '7', ''], 'bbox': [515.23, 114.54090437726728, 517.12, 122.10090437726728]}, {'tokens': ['', '6', '5', ',', '0', '5', '9', ''], 'bbox': [558.22, 114.54090437726728, 560.11, 122.10090437726728]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 114.54090437726728, 603.3100000000001, 122.10090437726728]}, {'tokens': ['', '4', '8', ',', '8', '2', '7', ''], 'bbox': [643.1800000000001, 114.54090437726728, 645.07, 122.10090437726728]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 114.54090437726728, 687.5500000000001, 122.10090437726728]}, {'tokens': ['', '9', '7', ',', '4', '0', '6', ''], 'bbox': [722.52, 114.54090437726728, 724.41, 122.10090437726728]}, {'tokens': ['', '2', '3', ',', '3', '9', '5', ''], 'bbox': [769.32, 114.54090437726728, 771.21, 122.10090437726728]}, {'tokens': ['', '漳', '州', '都', '会', '之', '光', '南', '区', ''], 'bbox': [6.84, 129.45390437726724, 51.95808000000001, 147.30090437726727]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 134.25390437726725, 81.354, 142.38090437726726]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 129.45390437726724, 108.83, 147.30090437726727]}, {'tokens': ['', '3', '4', '%', ''], 'bbox': [125.42000000000002, 134.58090437726725, 129.20000000000002, 142.14090437726725]}, {'tokens': ['', '4', '3', ',', '5', '7', '4', ''], 'bbox': [159.38, 134.58090437726725, 163.16, 142.14090437726725]}, {'tokens': ['', '9', '5', ',', '8', '6', '2', ''], 'bbox': [183.74, 134.58090437726725, 185.63, 142.14090437726725]}, {'tokens': ['', '1', '2', '7', ',', '3', '6', '8', ''], 'bbox': [227.21, 134.58090437726725, 229.1, 142.14090437726725]}, {'tokens': ['', '9', '2', ',', '8', '8', '3', ''], 'bbox': [268.13, 134.58090437726725, 270.02, 142.14090437726725]}, {'tokens': ['', '9', '2', ',', '8', '8', '3', ''], 'bbox': [311.81, 134.58090437726725, 313.7, 142.14090437726725]}, {'tokens': ['', '9', '2', ',', '8', '8', '3', ''], 'bbox': [354.28999999999996, 134.58090437726725, 356.17999999999995, 142.14090437726725]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 134.58090437726725, 398.79999999999995, 142.14090437726725]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 134.58090437726725, 440.91999999999996, 142.14090437726725]}, {'tokens': ['', '3', '0', ',', '4', '8', '3', ''], 'bbox': [479.83, 134.58090437726725, 481.71999999999997, 142.14090437726725]}, {'tokens': ['', '3', '0', ',', '4', '8', '3', ''], 'bbox': [515.23, 134.58090437726725, 517.12, 142.14090437726725]}, {'tokens': ['', '4', '1', ',', '4', '1', '4', ''], 'bbox': [558.22, 134.58090437726725, 560.11, 142.14090437726725]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 134.58090437726725, 603.3100000000001, 142.14090437726725]}, {'tokens': ['', '3', '0', ',', '4', '8', '3', ''], 'bbox': [643.1800000000001, 134.58090437726725, 645.07, 142.14090437726725]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 134.58090437726725, 687.5500000000001, 142.14090437726725]}, {'tokens': ['', '1', '1', '8', ',', '3', '2', '5', ''], 'bbox': [722.52, 134.58090437726725, 724.41, 142.14090437726725]}, {'tokens': ['', '2', '2', ',', '5', '8', '4', ''], 'bbox': [769.32, 134.58090437726725, 771.21, 142.14090437726725]}, {'tokens': ['', '漳', '州', '厦', '一', '城', '(', 'P', '0', '3', ')', ''], 'bbox': [10.559999999999999, 149.37390437726725, 48.23904, 167.2209043772673]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 154.17390437726726, 81.354, 162.30090437726727]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 149.37390437726725, 108.83, 167.2209043772673]}, {'tokens': ['', '9', '7', '%', ''], 'bbox': [125.42000000000002, 154.50090437726726, 129.20000000000002, 162.06090437726726]}, {'tokens': ['', '3', '2', ',', '1', '0', '2', ''], 'bbox': [159.38, 154.50090437726726, 163.16, 162.06090437726726]}, {'tokens': ['', '9', '6', ',', '3', '0', '6', ''], 'bbox': [183.74, 154.50090437726726, 185.63, 162.06090437726726]}, {'tokens': ['', '1', '2', '6', ',', '1', '1', '2', ''], 'bbox': [227.21, 154.50090437726726, 229.1, 162.06090437726726]}, {'tokens': ['', '9', '4', ',', '1', '2', '3', ''], 'bbox': [268.13, 154.50090437726726, 270.02, 162.06090437726726]}, {'tokens': ['', '0', ''], 'bbox': [311.81, 154.50090437726726, 313.7, 162.06090437726726]}, {'tokens': ['', '9', '4', ',', '1', '2', '3', ''], 'bbox': [354.28999999999996, 154.50090437726726, 356.17999999999995, 162.06090437726726]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 154.50090437726726, 398.79999999999995, 162.06090437726726]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 154.50090437726726, 440.91999999999996, 162.06090437726726]}, {'tokens': ['', '2', '6', ',', '8', '7', '2', ''], 'bbox': [479.83, 154.50090437726726, 481.71999999999997, 162.06090437726726]}, {'tokens': ['', '3', '4', ',', '8', '2', '1', ''], 'bbox': [515.23, 154.50090437726726, 517.12, 162.06090437726726]}, {'tokens': ['', '4', '0', ',', '8', '9', '6', ''], 'bbox': [558.22, 154.50090437726726, 560.11, 162.06090437726726]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 154.50090437726726, 603.3100000000001, 162.06090437726726]}, {'tokens': ['', '3', '4', ',', '8', '2', '1', ''], 'bbox': [643.1800000000001, 154.50090437726726, 645.07, 162.06090437726726]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 154.50090437726726, 687.5500000000001, 162.06090437726726]}, {'tokens': ['', '1', '3', '7', ',', '8', '1', '0', ''], 'bbox': [722.52, 154.50090437726726, 724.41, 162.06090437726726]}, {'tokens': ['', '2', '9', ',', '7', '6', '5', ''], 'bbox': [769.32, 154.50090437726726, 771.21, 162.06090437726726]}, {'tokens': ['', '漳', '州', '厦', '一', '城', '(', 'P', '0', '4', ')', ''], 'bbox': [10.559999999999999, 169.29390437726727, 48.23904, 187.14090437726725]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 174.21390437726728, 81.354, 182.3409043772673]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 169.29390437726727, 108.83, 187.14090437726725]}, {'tokens': ['', '4', '9', '%', ''], 'bbox': [125.42000000000002, 174.42090437726728, 129.20000000000002, 181.98090437726728]}, {'tokens': ['', '4', '9', ',', '4', '3', '9', ''], 'bbox': [159.38, 174.42090437726728, 163.16, 181.98090437726728]}, {'tokens': ['', '1', '3', '3', ',', '4', '8', '5', ''], 'bbox': [183.74, 174.42090437726728, 185.63, 181.98090437726728]}, {'tokens': ['', '1', '7', '9', ',', '2', '7', '6', ''], 'bbox': [227.21, 174.42090437726728, 229.1, 181.98090437726728]}, {'tokens': ['', '1', '3', '7', ',', '3', '9', '4', ''], 'bbox': [268.13, 174.42090437726728, 270.02, 181.98090437726728]}, {'tokens': ['', '0', ''], 'bbox': [311.81, 174.42090437726728, 313.7, 181.98090437726728]}, {'tokens': ['', '1', '3', '7', ',', '3', '9', '4', ''], 'bbox': [354.28999999999996, 174.42090437726728, 356.17999999999995, 181.98090437726728]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 174.42090437726728, 398.79999999999995, 181.98090437726728]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 174.42090437726728, 440.91999999999996, 181.98090437726728]}, {'tokens': ['', '5', '6', ',', '9', '5', '2', ''], 'bbox': [479.83, 174.42090437726728, 481.71999999999997, 181.98090437726728]}, {'tokens': ['', '8', '0', ',', '2', '6', '0', ''], 'bbox': [515.23, 174.42090437726728, 517.12, 181.98090437726728]}, {'tokens': ['', '8', '8', ',', '9', '2', '3', ''], 'bbox': [558.22, 174.42090437726728, 560.11, 181.98090437726728]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 174.42090437726728, 603.3100000000001, 181.98090437726728]}, {'tokens': ['', '8', '0', ',', '2', '6', '0', ''], 'bbox': [643.1800000000001, 174.42090437726728, 645.07, 181.98090437726728]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 174.42090437726728, 687.5500000000001, 181.98090437726728]}, {'tokens': ['', '1', '6', '9', ',', '6', '6', '6', ''], 'bbox': [722.52, 174.42090437726728, 724.41, 181.98090437726728]}, {'tokens': ['', '3', '4', ',', '6', '1', '5', ''], 'bbox': [769.32, 174.42090437726728, 771.21, 181.98090437726728]}, {'tokens': ['', '泉', '州', '金', '地', '联', '发', '都', '会', '之', '光', ''], 'bbox': [6.84, 189.21390437726728, 51.95808000000001, 207.18090437726727]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 194.13390437726724, 81.354, 202.26090437726725]}, {'tokens': ['', '住', '宅', '商', '业', ''], 'bbox': [91.94, 189.21390437726728, 108.83, 207.18090437726727]}, {'tokens': ['', '4', '6', '%', ''], 'bbox': [125.42000000000002, 194.46090437726724, 129.20000000000002, 202.02090437726724]}, {'tokens': ['', '2', '2', ',', '7', '4', '8', ''], 'bbox': [159.38, 194.46090437726724, 163.16, 202.02090437726724]}, {'tokens': ['', '5', '6', ',', '8', '6', '9', ''], 'bbox': [183.74, 194.46090437726724, 185.63, 202.02090437726724]}, {'tokens': ['', '7', '3', ',', '7', '3', '3', ''], 'bbox': [227.21, 194.46090437726724, 229.1, 202.02090437726724]}, {'tokens': ['', '5', '7', ',', '8', '1', '4', ''], 'bbox': [268.13, 194.46090437726724, 270.02, 202.02090437726724]}, {'tokens': ['', '5', '7', ',', '8', '1', '4', ''], 'bbox': [311.81, 194.46090437726724, 313.7, 202.02090437726724]}, {'tokens': ['', '5', '7', ',', '8', '1', '4', ''], 'bbox': [354.28999999999996, 194.46090437726724, 356.17999999999995, 202.02090437726724]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 194.46090437726724, 398.79999999999995, 202.02090437726724]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 194.46090437726724, 440.91999999999996, 202.02090437726724]}, {'tokens': ['', '1', '9', ',', '5', '5', '5', ''], 'bbox': [479.83, 194.46090437726724, 481.71999999999997, 202.02090437726724]}, {'tokens': ['', '2', '8', ',', '9', '0', '9', ''], 'bbox': [515.23, 194.46090437726724, 517.12, 202.02090437726724]}, {'tokens': ['', '2', '3', ',', '4', '7', '3', ''], 'bbox': [558.22, 194.46090437726724, 560.11, 202.02090437726724]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 194.46090437726724, 603.3100000000001, 202.02090437726724]}, {'tokens': ['', '2', '8', ',', '9', '0', '9', ''], 'bbox': [643.1800000000001, 194.46090437726724, 645.07, 202.02090437726724]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 194.46090437726724, 687.5500000000001, 202.02090437726724]}, {'tokens': ['', '6', '2', ',', '1', '6', '3', ''], 'bbox': [722.52, 194.46090437726724, 724.41, 202.02090437726724]}, {'tokens': ['', '3', '5', ',', '9', '6', '6', ''], 'bbox': [769.32, 194.46090437726724, 771.21, 202.02090437726724]}, {'tokens': ['', '海', '宁', '华', '宸', '府', ''], 'bbox': [10.559999999999999, 211.53390437726728, 50.010000000000005, 219.6609043772673]}, {'tokens': ['', '在', '建', ''], 'bbox': [64.464, 211.53390437726728, 81.354, 219.6609043772673]}, {'tokens': ['', '住', '宅', ''], 'bbox': [91.94, 211.53390437726728, 108.83, 219.6609043772673]}, {'tokens': ['', '5', '0', '%', ''], 'bbox': [125.42000000000002, 211.86090437726727, 129.20000000000002, 219.42090437726728]}, {'tokens': ['', '6', '7', ',', '6', '3', '0', ''], 'bbox': [159.38, 211.86090437726727, 163.16, 219.42090437726728]}, {'tokens': ['', '1', '3', '5', ',', '2', '6', '0', ''], 'bbox': [183.74, 211.86090437726727, 185.63, 219.42090437726728]}, {'tokens': ['', '1', '7', '9', ',', '5', '5', '8', ''], 'bbox': [227.21, 211.86090437726727, 229.1, 219.42090437726728]}, {'tokens': ['', '1', '3', '2', ',', '9', '6', '2', ''], 'bbox': [268.13, 211.86090437726727, 270.02, 219.42090437726728]}, {'tokens': ['', '1', '3', '2', ',', '9', '6', '2', ''], 'bbox': [311.81, 211.86090437726727, 313.7, 219.42090437726728]}, {'tokens': ['', '1', '3', '2', ',', '9', '6', '2', ''], 'bbox': [354.28999999999996, 211.86090437726727, 356.17999999999995, 219.42090437726728]}, {'tokens': ['', '0', ''], 'bbox': [396.90999999999997, 211.86090437726727, 398.79999999999995, 219.42090437726728]}, {'tokens': ['', '0', ''], 'bbox': [439.03, 211.86090437726727, 440.91999999999996, 219.42090437726728]}, {'tokens': ['', '3', '2', ',', '5', '1', '9', ''], 'bbox': [479.83, 211.86090437726727, 481.71999999999997, 219.42090437726728]}, {'tokens': ['', '3', '2', ',', '5', '1', '9', ''], 'bbox': [515.23, 211.86090437726727, 517.12, 219.42090437726728]}, {'tokens': ['', '5', '2', ',', '9', '1', '5', ''], 'bbox': [558.22, 211.86090437726727, 560.11, 219.42090437726728]}, {'tokens': ['', '0', ''], 'bbox': [601.4200000000001, 211.86090437726727, 603.3100000000001, 219.42090437726728]}, {'tokens': ['', '3', '2', ',', '5', '1', '9', ''], 'bbox': [643.1800000000001, 211.86090437726727, 645.07, 219.42090437726728]}, {'tokens': ['', '0', ''], 'bbox': [685.6600000000001, 211.86090437726727, 687.5500000000001, 219.42090437726728]}, {'tokens': ['', '1', '9', '3', ',', '8', '6', '9', ''], 'bbox': [722.52, 211.86090437726727, 724.41, 219.42090437726728]}, {'tokens': ['', '1', '1', '8', ',', '4', '3', '4', ''], 'bbox': [769.32, 211.86090437726727, 771.21, 219.42090437726728]}], 'structure': {'tokens': ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']}}, 'location': [14.16, 89.02205562273281, 824.6399999999999, 317.93591293833134], 'pdfShape': [595.32, 841.92]}

HULEI7 commented 1 year ago

请问解决了吗,遇到了同样的问题

Athena233 commented 5 months ago

@tianyongliu 这个数据你是怎么标注的?

tianyongliu commented 3 months ago

项目跑出来的数据,不是标注的