Object Detection
Transformers
Safetensors
florence2
image-text-to-text
medieval
manuscript
custom_code
Instructions to use medieval-data/Florence-2-base-medieval-zone-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use medieval-data/Florence-2-base-medieval-zone-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="medieval-data/Florence-2-base-medieval-zone-detection", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("medieval-data/Florence-2-base-medieval-zone-detection", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("medieval-data/Florence-2-base-medieval-zone-detection", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -49,7 +49,7 @@ The following table describes the labels, the ones used to train this model, the
|
|
| 49 |
|
| 50 |
Use the code below to get started with the model. All models are trained with float16.
|
| 51 |
|
| 52 |
-
```
|
| 53 |
import requests
|
| 54 |
from PIL import Image
|
| 55 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
|
|
|
| 49 |
|
| 50 |
Use the code below to get started with the model. All models are trained with float16.
|
| 51 |
|
| 52 |
+
```python
|
| 53 |
import requests
|
| 54 |
from PIL import Image
|
| 55 |
from transformers import AutoProcessor, AutoModelForCausalLM
|