Florence-2 grounding
Florence-2 grounding locates the target of an instruction as an image point.
- Tâches
- point detection
- Tailles
- base, large at 768 px
- Installer
pip install "libreyolo[vlm]"- Niveau de support
- Niveau parallèle, depuis v1.6.0. Une interface produit distincte avec sa propre factory et son propre contrat.
- Licences
- Code MIT, poids MIT. Usage commercial
Install
pip install "libreyolo[ground]"Predict
from libreyolo import LibreGround, SAMPLE_IMAGE model = LibreGround("florence-2-base", device="cpu")result = model(SAMPLE_IMAGE, prompt="the person")print(result.points.xy)Use prompt= or query= for one call, or set_query() for a persistent instruction. A list of instructions on one image returns at most one click per query. Multi-query calls on image lists or folders raise an error. Coordinates refer to the original image. Training, validation and export are not supported. See the grounding API.
Licensing
Vérifiez la licence dans le dépôt Hugging Face des poids précis que vous téléchargez. Chaque checkpoint de l<link>organisation LibreYOLO</link> en possède une, et elles ne sont pas toujours identiques au sein dune même famille. Ce dépôt fait autorité ; le résumé ci-dessous décrit les conditions applicables lors de la dernière vérification de cette page.
Ceci décrit les licences concernées et ne constitue pas un conseil juridique. Si la réponse a une importance commerciale, lisez vous-même les licences et consultez votre propre avocat.
- Travail d'origine
- Florence-2, Microsoft
- Licence du projet d'origine
- MIT
- Source du projet d'origine
- huggingface.co/microsoft/Florence-2-base
- Code de LibreYOLO
- MIT
- Poids
- MIT, republiés sur huggingface.co/LibreYOLO
- Interprétation
- The model publisher declares MIT.
Citation
@article{xiao2023florence,
title={Florence-2: Advancing a unified representation for a variety of vision tasks},
author={Xiao, Bin and Wu, Haiping and Xu, Weijian and Dai, Xiyang and Hu, Houdong and Lu, Yumao and Zeng, Michael and Liu, Ce and Yuan, Lu},
journal={arXiv preprint arXiv:2311.06242},
year={2023}
}Copié depuis le bloc de citation des auteurs sur huggingface.co/microsoft/Florence-2-large#bibtex.