Jietson commited on
Commit
a967915
·
verified ·
1 Parent(s): a110327

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -63,7 +63,7 @@ You can find our dataset on huggingface: 🤗[InfoChartQA Dataset](https://huggi
63
 
64
  # Usage
65
 
66
- Each question entry is arranged as follows. ** Note that for visual questions, there may be some extra input figures, which are cropped from the orginal figure. We present their bboxes in "extra_input_figure_bbox". **
67
  ```
68
  {
69
  "question_id": id of the question,
@@ -75,7 +75,7 @@ Each question entry is arranged as follows. ** Note that for visual questions, t
75
  "instructions": instructions,
76
  "url": url of the input image,
77
  "extra_input_figure_ids": ids of the extra input figures,
78
- "extra_input_figure_bbox": bbox of the extra input figures, in [x,y,w,h] format w/o normalization.
79
  "difficulty": difficulty level,
80
  "chart_type": chart_type,
81
  }
@@ -85,7 +85,7 @@ Each question is built by:
85
 
86
  ```
87
  input_image: item["url"] (may need to download for models that don't support url input)
88
- extra_input_image: Cropped input_image using item["extra_input_figure_bbox"],
89
  input_text: item["question"] + item["instructions"] (if any)
90
  ```
91
 
@@ -125,7 +125,7 @@ for query in tqdm(ds):
125
  For example, for model like Qwen2.5-VL, you may need to down load the image first and pass the local image path to the model,
126
  like: input_figure = YOUR_LOCAL_IMAGE_PATH OF query['figure_id']
127
  Moreover, for questions with extra figure input, you may need to crop figure, for example,
128
- extra_input_figures = [crop(input_figure,bbox) for bbox in query["extra_input_figure_bbox"]]
129
  """
130
 
131
  # Replace with your model
 
63
 
64
  # Usage
65
 
66
+ Each question entry is arranged as follows. **Note that for visual questions, there may be some extra input figures, which are cropped from the orginal figure. We present their bboxes in "extra_input_figure_bbox".**
67
  ```
68
  {
69
  "question_id": id of the question,
 
75
  "instructions": instructions,
76
  "url": url of the input image,
77
  "extra_input_figure_ids": ids of the extra input figures,
78
+ "extra_input_figure_bboxes": bbox of the extra input figures, in [x,y,w,h] format w/o normalization.
79
  "difficulty": difficulty level,
80
  "chart_type": chart_type,
81
  }
 
85
 
86
  ```
87
  input_image: item["url"] (may need to download for models that don't support url input)
88
+ extra_input_image: Cropped input_image using item["extra_input_figure_bboxes"],
89
  input_text: item["question"] + item["instructions"] (if any)
90
  ```
91
 
 
125
  For example, for model like Qwen2.5-VL, you may need to down load the image first and pass the local image path to the model,
126
  like: input_figure = YOUR_LOCAL_IMAGE_PATH OF query['figure_id']
127
  Moreover, for questions with extra figure input, you may need to crop figure, for example,
128
+ extra_input_figures = [crop(input_figure,bbox) for bbox in query["extra_input_figure_bboxes"]]
129
  """
130
 
131
  # Replace with your model