Переглянути як Markdown

Perception Encoder

Perception Encoder maps images, text and finite video clips into a shared embedding space.

Задачі
classification, embeddings
Встановлення
pip install "libreyolo[clip]"
Рівень підтримки
Суміжний рівень, починаючи з v1.6.0. Окремий інтерфейс продукту з власною фабрикою та контрактом.
Першоджерело
Perception Encoder, автори: Meta AI, ліцензія Apache-2.0. Стаття, джерело
Ліцензії
Код: MIT, ваги: Apache-2.0. Комерційне використання

Install

bash
pip install "libreyolo[clip]"

Predict

Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibrePEt16-cls.pt", device="cpu")model.set_classes(["person", "building"])result = model(SAMPLE_IMAGE)print(result.probs)

Set classes before zero-shot classification. Select task="embed" when loading for embeddings. Video embedding samples clip_frames=8 frames by default, averages their vectors and L2-normalizes the result. Training is not supported. Exported video graphs take direct runtime input.

Export

ЗадачаONNXTorchScriptExecuTorchTensorRTOpenVINOPaddleMNNRKNNncnnTFLiteCoreMLCore AI
ClassificationClassification to ONNX: підтримуєтьсяClassification to TorchScript: підтримуєтьсяClassification to ExecuTorch: підтримуєтьсяClassification to TensorRT: підтримуєтьсяClassification to OpenVINO: підтримуєтьсяClassification to Paddle: не підтримуєтьсяClassification to MNN: не підтримуєтьсяClassification to RKNN: не підтримуєтьсяClassification to ncnn: не підтримуєтьсяClassification to TFLite: не підтримуєтьсяClassification to CoreML: не підтримуєтьсяClassification to Core AI: не підтримується
EmbeddingsEmbeddings to ONNX: підтримуєтьсяEmbeddings to TorchScript: підтримуєтьсяEmbeddings to ExecuTorch: підтримуєтьсяEmbeddings to TensorRT: підтримуєтьсяEmbeddings to OpenVINO: підтримуєтьсяEmbeddings to Paddle: не підтримуєтьсяEmbeddings to MNN: не підтримуєтьсяEmbeddings to RKNN: не підтримуєтьсяEmbeddings to ncnn: не підтримуєтьсяEmbeddings to TFLite: не підтримуєтьсяEmbeddings to CoreML: не підтримуєтьсяEmbeddings to Core AI: не підтримується
Python
from libreyolo import LibreYOLO, SAMPLE_IMAGE model = LibreYOLO("LibrePEt16-cls.pt", device="cpu")model.export(format="onnx")

Export setup lists format dependencies and loading exported artifacts.

Checkpoints

ФайлЛіцензія ваг
Classification
LibrePEt16-cls.ptapache-2.0
LibrePEs16-cls.ptapache-2.0
LibrePEb16-cls.ptapache-2.0
LibrePEl14-cls.ptapache-2.0
LibrePEg14-cls.ptapache-2.0

Кожен наведений вище файл уже доступний у організації LibreYOLO і завантажується під час першого використання.

Licensing

Перевіряйте ліцензію в репозиторії Hugging Face конкретних ваг, які завантажуєте. Кожна контрольна точка в організації LibreYOLO має ліцензію, і вона не завжди однакова для всього сімейства. Цей репозиторій є авторитетним джерелом, а наведене нижче резюме описує умови на момент останньої перевірки сторінки.

Це опис відповідних ліцензій, а не юридична консультація. Якщо відповідь має комерційне значення, самостійно прочитайте ліцензії та зверніться по юридичну консультацію.

Оригінальна робота
Perception Encoder, Meta AI
Ліцензія першоджерела
Apache-2.0
Джерело першоджерела
github.com/facebookresearch/perception_models
Код LibreYOLO
MIT
Ваги
Apache-2.0, повторно опубліковано на huggingface.co/LibreYOLO
Тлумачення
The publisher declares Apache-2.0 for the encoder weights.

Citation

@article{bolya2025PerceptionEncoder,
  title={Perception Encoder: The best visual embeddings are not at the output of the network},
  author={Daniel Bolya and Po-Yao Huang and Peize Sun and Jang Hyun Cho and Andrea Madotto and Chen Wei and Tengyu Ma and Jiale Zhi and Jathushan Rajasegaran and Hanoona Rasheed and Junke Wang and Marco Monteiro and Hu Xu and Shiyu Dong and Nikhila Ravi and Daniel Li and Piotr Doll{\'a}r and Christoph Feichtenhofer},
  journal={arXiv:2504.13181},
  year={2025}
}

Скопійовано з блоку цитування авторів на сторінці raw.githubusercontent.com/facebookresearch/perception_models/main/README.md.

Перевірено з LibreYOLO v1.6.0. Таблиці підтримки, контрольні точки й результати бенчмарків на цій сторінці згенеровано з випущеної бібліотеки та опублікованих ваг, а не написано вручну.

Архітектура PE Core

Виберіть варіант або огляд сімейства, а потім блок для перегляду подробиць. Відкрийте повну схему для масштабування або завантаження SVG і PNG. Схеми англійською мовою.