You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have attempted to fine-tune the model for end-to-end chart extraction, based on the Dataset ChartQA. During training, everything is ok, the loss was going down as expected.
However, during inference, the result is just a long sequence a of repeated random character:
I have attempted to fine-tune the model for end-to-end chart extraction, based on the Dataset ChartQA. During training, everything is ok, the loss was going down as expected.
However, during inference, the result is just a long sequence a of repeated random character:
Here is the code we have used for loading the model and inference:
Here is the sample image that we have tested on:
And here is the ground-truth:
Ground truth: {'gt_parse': {'general_figure_info': {'figure_info': {'bbox': {'x': 103, 'y': 45, 'w': 622, 'h': 271}}, 'y_axis': {'label': {'bbox': [{'x': 40, 'y': 113, 'w': 11, 'h': 135.640625}], 'text': 'Share of total U.S. households'}, 'major_labels': {'bboxes': {'x': 60, 'y': 24, 'w': 33, 'h': 302}}}, 'x_axis': {'major_labels': {'bboxes': {'x': 77, 'y': 324, 'w': 638, 'h': 123}, 'values': ['With an Internet', 'Dial-up only', 'Broadband of any type', 'Cellular data plan', 'Cellular data plan with no', 'Broadband such as cable,', 'Satellite', 'No subscription (internet']}, 'label': {}}}, 'models': [{'name': {}, 'bboxes': [{'x': 115, 'y': 86, 'w': 54, 'h': 231}, {'x': 193, 'y': 316, 'w': 54, 'h': 1}, {'x': 271, 'y': 86, 'w': 54, 'h': 231}, {'x': 349, 'y': 112, 'w': 54, 'h': 205}, {'x': 426, 'y': 286, 'w': 54, 'h': 31}, {'x': 504, 'y': 128, 'w': 54, 'h': 189}, {'x': 582, 'y': 298, 'w': 54, 'h': 19}, {'x': 660, 'y': 277, 'w': 54, 'h': 40}], 'x': ['With an Internet', 'Dial-up only', 'Broadband of any type', 'Cellular data plan', 'Cellular data plan with no', 'Broadband such as cable,', 'Satellite', 'No subscription (internet'], 'y': ['85.3%', '0.3%', '85.1%', '75.7%', '11.6%', '69.6%', '6.9%', '14.7%'], 'colors': ['#2876dd', '#2876dd', '#2876dd', '#2876dd', '#2876dd', '#2876dd', '#2876dd', '#2876dd'], 'labels': ['With an Internet', 'Dial-up only', 'Broadband of any type', 'Cellular data plan', 'Cellular data plan with no', 'Broadband such as cable,', 'Satellite', 'No subscription (internet']}], 'type': 'v_bar'}, 'metadata': {'imgname': 'two_col_2998.png'}}
Our version:
!pip install transformers==4.25.1
!pip install timm==0.5.4
And here is our loss graph:
Any comments will be a great support to help us fix this bug :D
The text was updated successfully, but these errors were encountered: