Instructions to use puhuilab/PHOCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use puhuilab/PHOCR with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="puhuilab/PHOCR")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("puhuilab/PHOCR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +12 -0
- README_CN.md +12 -0
README.md
CHANGED
|
@@ -120,6 +120,18 @@ We conducted comprehensive benchmarks comparing PHOCR with leading OCR solutions
|
|
| 120 |
<td>0.102</td>
|
| 121 |
<td>0.0616</td>
|
| 122 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
</tbody>
|
| 124 |
</table>
|
| 125 |
|
|
|
|
| 120 |
<td>0.102</td>
|
| 121 |
<td>0.0616</td>
|
| 122 |
</tr>
|
| 123 |
+
<tr>
|
| 124 |
+
<td>PP-OCRv5</td>
|
| 125 |
+
<td>0.0149</td>
|
| 126 |
+
<td>0.0226</td>
|
| 127 |
+
<td>0.0722</td>
|
| 128 |
+
<td>0.0625</td>
|
| 129 |
+
<td>0.0490</td>
|
| 130 |
+
<td>0.1140</td>
|
| 131 |
+
<td>0.0113</td>
|
| 132 |
+
<td>0.0519</td>
|
| 133 |
+
<td>0.0348</td>
|
| 134 |
+
</tr>
|
| 135 |
</tbody>
|
| 136 |
</table>
|
| 137 |
|
README_CN.md
CHANGED
|
@@ -133,6 +133,18 @@ print(result.to_markdown())
|
|
| 133 |
<td>-</td>
|
| 134 |
<td>-</td>
|
| 135 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
</tbody>
|
| 137 |
</table>
|
| 138 |
|
|
|
|
| 133 |
<td>-</td>
|
| 134 |
<td>-</td>
|
| 135 |
</tr>
|
| 136 |
+
<tr>
|
| 137 |
+
<td>PP-OCRv5</td>
|
| 138 |
+
<td>0.0149</td>
|
| 139 |
+
<td>0.0226</td>
|
| 140 |
+
<td>0.0722</td>
|
| 141 |
+
<td>0.0625</td>
|
| 142 |
+
<td>0.0490</td>
|
| 143 |
+
<td>0.1140</td>
|
| 144 |
+
<td>0.0113</td>
|
| 145 |
+
<td>0.0519</td>
|
| 146 |
+
<td>0.0348</td>
|
| 147 |
+
</tr>
|
| 148 |
</tbody>
|
| 149 |
</table>
|
| 150 |
|