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 orgの各チェックポイントにはライセンスが付与されており、同じファミリー内でも常に同一とは限りません。そのリポジトリが正式な情報源です。以下の概要は、このページを最後に検証した時点で適用されていた内容を示します。
これは関連するライセンスの説明であり、法的助言ではありません。商用上重要な場合は、自分でライセンスを読み、専門家の助言を受けてください。
- 原著作物
- Gemma 4, Google
- アップストリームのライセンス
- Apache-2.0
- アップストリームのソース
- huggingface.co/google
- 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.