V-JEPA 2

V-JEPA 2 produces video embeddings and supports training an attentive classification probe.

Tác vụ
embeddings, classification
Kích thước
l256, h256, g256, g384 at 256 to 384 px
Cài đặt
pip install libreyolo
Bậc hỗ trợ
Được hỗ trợ, từ v1.6.0. Các mô hình huấn luyện bổ trợ: luôn giữ CI ở trạng thái xanh, tính năng được bổ sung khi có cơ hội.
Giấy phép
Mã nguồn MIT, trọng số MIT; Apache-2.0 for giant encoder artifacts. Sử dụng thương mại

Install

bash
pip install "libreyolo"

Predict

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-embed.pt", device="cpu")result = model(SAMPLE_IMAGE)print(result.embeddings)tokens = model.embed_tokens(SAMPLE_IMAGE)print(tokens.shape)

A still image is promoted to a clip. embed_tokens() returns (B, T, H, W, D) tokens; the public embedding normalizes their mean. Exported clip graphs require direct five-dimensional runtime input.

Train

Only the attentive probe and linear classifier train; the encoder stays frozen. Use the classification task and a video-manifest dataset. Defaults are 10 epochs, batch 2, learning rate 0.001 and workers 0. Full encoder fine-tuning and pretraining are not supported.

Dataset setup describes the required training data.

Python
from libreyolo import LibreYOLO model = LibreYOLO("LibreVJEPA2l256-cls-ssv2.pt", device="cpu")# Replace with your video dataset YAML (train/val manifests of '<video-path> <class-id>' lines).model.train(data="path/to/your/video_dataset.yaml", epochs=1, device="cpu", workers=0)

Validate

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-cls-ssv2.pt", device="cpu")# Replace with your video dataset YAML; val() reads its val manifest of '<video-path> <class-id>' lines.metrics = model.val(data="path/to/your/video_dataset.yaml", workers=0)print(metrics)

Use the dataset format for this task. Validation explains the dataset requirements and returned metrics.

Export

Tác vụONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
EmbeddingsEmbeddings to ONNX: được hỗ trợEmbeddings to TorchScript: được hỗ trợEmbeddings to ExecuTorch: được hỗ trợEmbeddings to TensorRT: được hỗ trợEmbeddings to OpenVINO: được hỗ trợEmbeddings to Paddle: không được hỗ trợEmbeddings to MNN: không được hỗ trợEmbeddings to RKNN: không được hỗ trợEmbeddings to ncnn: không được hỗ trợEmbeddings to TFLite: không được hỗ trợEmbeddings to CoreML: không được hỗ trợEmbeddings to Core AI: không được hỗ trợ
ClassificationClassification to ONNX: được hỗ trợClassification to TorchScript: được hỗ trợClassification to ExecuTorch: được hỗ trợClassification to TensorRT: được hỗ trợClassification to OpenVINO: được hỗ trợClassification to Paddle: không được hỗ trợClassification to MNN: không được hỗ trợClassification to RKNN: không được hỗ trợClassification to ncnn: không được hỗ trợClassification to TFLite: không được hỗ trợClassification to CoreML: không được hỗ trợClassification to Core AI: không được hỗ trợ
Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibreVJEPA2l256-embed.pt", device="cpu")model.export(format="onnx")

Export setup lists format dependencies and loading exported artifacts.

Checkpoints

Mọi tệp ở trên hiện đều có trong tổ chức LibreYOLO và được tải xuống trong lần sử dụng đầu tiên.

Licensing

Hãy kiểm tra giấy phép trong repo Hugging Face của trọng số cụ thể mà bạn tải xuống. Mỗi checkpoint trong tổ chức LibreYOLO đều có giấy phép riêng và giấy phép có thể khác nhau trong cùng một họ. Repo đó là nguồn có thẩm quyền; phần tóm tắt dưới đây mô tả các điều khoản áp dụng khi trang này được kiểm chứng lần gần nhất.

Đây là phần mô tả các giấy phép liên quan, không phải tư vấn pháp lý. Nếu câu trả lời có ý nghĩa về mặt thương mại, hãy tự đọc các giấy phép và tham khảo cố vấn của riêng bạn.

Công trình gốc
V-JEPA 2, Meta AI
Giấy phép thượng nguồn
MIT; Apache-2.0 for giant encoder artifacts
Nguồn thượng nguồn
github.com/facebookresearch/vjepa2
Mã nguồn LibreYOLO
MIT
Trọng số
MIT; Apache-2.0 for giant encoder artifacts, được phát hành lại tại huggingface.co/LibreYOLO
Diễn giải
Licenses differ by artifact: the two giant encoder artifacts are Apache-2.0; the other mirrored encoders and classification probes are MIT.

Đã kiểm chứng với LibreYOLO v1.6.0. Các bảng hỗ trợ, checkpoint và số liệu benchmark trên trang này được tạo từ thư viện đã phát hành và trọng số đã công bố, không phải viết thủ công.

Kiến trúc V-JEPA 2

Chọn một biến thể hoặc tổng quan dòng mô hình, rồi chọn khối để xem chi tiết. Mở sơ đồ đầy đủ để phóng to hoặc tải xuống SVG và PNG. Sơ đồ sử dụng tiếng Anh.