Gemma 4
Gemma 4 produces object detections from image and text input.
- 任务
- detection
- 尺寸
- e2b, e4b at 896 px
- 安装
pip install "libreyolo[vlm]"- 支持层级
- 兄弟层级,自 v1.6.0 起。一个独立的产品面,有自己的工厂和契约。
- 许可
- 代码采用 MIT,权重采用 Apache-2.0。商用
Install
bash
pip install "libreyolo[vlm]" "transformers>=5.10.0"Predict
Python
from libreyolo import LibreVLM, SAMPLE_IMAGE model = LibreVLM("gemma-4-e2b", device="cpu")model.set_classes(["person", "building"])result = model(SAMPLE_IMAGE)print(result.boxes)The E2B and E4B adapters parse boxes on a 0–1000 coordinate grid. The bare gemma-4 alias selects E4B. Install Transformers 5.10 or later. Training is not supported.
Licensing
请检查你所下载的具体权重在 Hugging Face 仓库中的许可。LibreYOLO 组织里的每个检查点都附有许可,同一家族内也不一定相同。该仓库是权威来源;以下摘要说明本页上次验证时适用的情况。
这里只说明涉及的许可证,不构成法律意见。如果答案对商用很重要,请自行阅读许可证并咨询法律顾问。
- 原始工作
- Gemma 4, Google
- 上游许可
- Apache-2.0
- LibreYOLO 代码
- MIT
- 权重
- 采用 Apache-2.0 许可,重新发布在 huggingface.co/LibreYOLO
- 解读
- The Gemma 4 adapters reference Apache-2.0 snapshots; this declaration does not apply to other Gemma generations.