Skip to main content

RaptorVision Logo RaptorVision

License: GPL v3 PyPI version

RaptorVision is an open-source tool developed by Rémi Pérenne, built upon Meta's DINOv3 foundation models. It allows anyone to create a custom object detection model with just a few clicks, requiring only a handful of example images.

Why RaptorVision?

This project was born from a specific need in biology: sorting through thousands of images from wildlife camera traps. While excellent tools like MegaDetector exist, they are often based on the YOLO architecture, which requires thousands of annotated images to recognize a specific species. This makes them difficult to use for rare species where data is scarce.

RaptorVision changes the game by using "few-shot learning":

  • Efficiency: Learns what your target looks like from just 1 or 2 clicks.
  • Versatility: Works for animals or any specific entity.
  • Speed: Drastically reduces the time spent manually sorting images that do not contain what you want.

The name is a nod to Meta's DINO model (Velociraptor is a dinosaur) and the fact that the software acts as a "predator" finding its prey (your data) within a sea of images.


Installation

RaptorVision is available on PyPI. You can install it using pip:

pip install raptor-vision

Model Weights Setup

Due to Meta's license agreement, the model weights cannot always be downloaded automatically. If the software fails to download them on the first run, follow these steps:

  1. Visit the Meta DINO Download Page and fill out the form.
  2. Download the Small, Base, or Large models (the Small version is sufficient for 90% of use cases).
  3. You will obtain files named like:
    • dinov3_vits16_pretrain_lvd1689m-08c60483.pth (Small)
    • dinov3_vitb16_pretrain_lvd1689m-73cec8be.pth (Base)
    • dinov3_vitl16_pretrain_lvd1689m-8aa4cbdd.pth (Large)
  4. Launch raptor-vision. If the models are missing, the terminal will display the specific Torch cache path on your system.
  5. Copy your downloaded .pth files into that directory and restart the application.

Usage Guide

A comprehensive user guide is integrated directly within the RaptorVision interface. Simply launch the app to explore the features!

By default raptor vision is launched with dino-small and an image resolution (the length of the shortest side of the image) of 672px. If you find that RaptorVision does not detect correctly the entities on your images you can try to increase the resolution (be carefull it shall be a multiple of 16) or to use a better version of dino by typing: raptor-vision --model_size=[size] --image_resolution=[res] where size can be small, base or large and res has to be a multiple of 16. For advanced users, you can use a convnext backbone by specifying --backbone=convnext, this is useful when animals are often on the edges of the image (see technical paper in /paper).


Examples & Performance

1. Point-and-Detect

Simply click on an object (e.g., a frog) to teach the model. The left panel shows the reference selection:

frog

Select one bird...

bird1

...and RaptorVision automatically detects the others in subsequent frames:

bird2 bird3

Note: The top-right window shows which memory image the model is currently using for detection.

2. Complex Scenarios

RaptorVision handles visual diversity well. By clicking on a lizard, the model successfully identifies other lizards and even a snake in the same environment.

lezard1 lezard2 lezard3

Tip: If the model is too sensitive (e.g., picking up a snake when you only want lizards), you can easily adjust the sensitivity threshold in the UI.

3. RaptorScan (Batch Processing)

For large datasets, RaptorVision generates detection heatmaps and automates file management.

Original Image:

frog

Detection Heatmap:

frog

RaptorScan Interface: You can process entire folders, automatically copy images containing detections to a new folder, and export detailed statistics (CSV/TXT) for analysis in Python or Excel. raptorscan


Technical Details & Benchmarks

For an in-depth explanation of how RaptorVision works under the hood — including the DINOv3 feature extraction pipeline, similarity scoring, and performance benchmarks — see the technical paper:

📄 paper/paper_conference.pdf


Credits & Data


License: This project is licensed under the GPLv3 License.

Metadata

Release files for raptor-vision 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raptor-vision 2.0.1
File Size Uploaded Provenance Actions
raptor_vision-2.0.1.tar.gz 174.1 kB Without provenance Details for raptor_vision-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for raptor-vision 2.0.1
File Interpreter ABI Platform Actions
raptor_vision-2.0.1-py3-none-any.whl Python 3 none any Details for raptor_vision-2.0.1-py3-none-any.whl

Total release size: 333.7 kB

Release files / raptor_vision-2.0.1.tar.gz

Download URL raptor_vision-2.0.1.tar.gz
Size 174.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d785816b1793259614d5f132faa565436334cf1b2056206232ad774d64e2b8d
BLAKE2b-256 checksum
How to use checksums
413dc9c664e653ae988b2ddec4183117ef89de7ca1c0493cd37372c782ee602a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / raptor_vision-2.0.1-py3-none-any.whl

Download URL raptor_vision-2.0.1-py3-none-any.whl
Size 159.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2468e021cfb2ac05ef08ba750862a4b850ba09f694db887356d7eb08e64de281
BLAKE2b-256 checksum
How to use checksums
ab6e7faa2349863479a09338979ffd3904365ee7fb1eb305c75946a9e4b2a0c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for raptor-vision 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page