Instructions to use diffusers/Florence2-image-Annotator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/Florence2-image-Annotator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/Florence2-image-Annotator", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update mellon_pipeline_config.json
Browse files
mellon_pipeline_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"label": "Florence2 Image Annotator Block",
|
| 3 |
"default_repo": "",
|
| 4 |
-
"default_dtype": "",
|
| 5 |
"node_params": {
|
| 6 |
"custom": {
|
| 7 |
"params": {
|
|
|
|
| 1 |
{
|
| 2 |
"label": "Florence2 Image Annotator Block",
|
| 3 |
"default_repo": "",
|
| 4 |
+
"default_dtype": "bfloat16",
|
| 5 |
"node_params": {
|
| 6 |
"custom": {
|
| 7 |
"params": {
|