Arthur commited on
Commit ·
b93aba7
1
Parent(s): 3373f2c
Update OCR_SIGNATURES task description for clarity
Browse files- processing_florence2.py +3 -2
processing_florence2.py
CHANGED
|
@@ -107,8 +107,9 @@ class Florence2Processor(ProcessorMixin):
|
|
| 107 |
'<REGION_TO_DESCRIPTION>': 'pure_text',
|
| 108 |
'<REGION_TO_OCR>': 'pure_text',
|
| 109 |
'<REGION_PROPOSAL>': 'bboxes',
|
| 110 |
-
# **New Added Tasks**
|
| 111 |
'<OCR_SIGNATURES>': 'pure_text'
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
self.task_prompts_without_inputs = {
|
|
@@ -120,7 +121,7 @@ class Florence2Processor(ProcessorMixin):
|
|
| 120 |
'<OD>': 'Locate the objects with category name in the image.',
|
| 121 |
'<DENSE_REGION_CAPTION>': 'Locate the objects in the image, with their descriptions.',
|
| 122 |
'<REGION_PROPOSAL>': 'Locate the region proposals in the image.',
|
| 123 |
-
'<OCR_SIGNATURES>': '
|
| 124 |
}
|
| 125 |
|
| 126 |
self.task_prompts_with_input = {
|
|
|
|
| 107 |
'<REGION_TO_DESCRIPTION>': 'pure_text',
|
| 108 |
'<REGION_TO_OCR>': 'pure_text',
|
| 109 |
'<REGION_PROPOSAL>': 'bboxes',
|
|
|
|
| 110 |
'<OCR_SIGNATURES>': 'pure_text'
|
| 111 |
+
# **New Added Tasks**
|
| 112 |
+
|
| 113 |
}
|
| 114 |
|
| 115 |
self.task_prompts_without_inputs = {
|
|
|
|
| 121 |
'<OD>': 'Locate the objects with category name in the image.',
|
| 122 |
'<DENSE_REGION_CAPTION>': 'Locate the objects in the image, with their descriptions.',
|
| 123 |
'<REGION_PROPOSAL>': 'Locate the region proposals in the image.',
|
| 124 |
+
'<OCR_SIGNATURES>': 'What are the signatures in the image?'
|
| 125 |
}
|
| 126 |
|
| 127 |
self.task_prompts_with_input = {
|