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
Commit History
-
Update README.md
Verified signature6d110d6
-
Update README.md
Verified signature1c1d540
-
Update README.md
Verified signature6d8a836
-
Update mellon_pipeline_config.json
Verified signatureffb3067 -
Update mellon_pipeline_config.json
Verified signature216ba61 -
Update mellon_pipeline_config.json
Verified signatured1e04bb -
Upload MellonPipelineConfig
Verified signature5b4cbe4 -
Update block.py
Verified signatured9dd112
-
Upload MellonPipelineConfig
Verified signature0261f81 -
Update block.py (#1)
Verified signature- Update block.py (06a567bfb64f678694f4a61708870b408ed8aed3)b564a19 -
Upload MellonPipelineConfig
Verified signaturea618ce3 -
Upload ModularPipeline
Verified signatureefe6ec3 -
Update README.md
Verified signaturec103541 -
Upload Florence2ImageAnnotatorBlock
Verified signatureac737b8 -
initial commit
Verified signature27bd963