descriptron-vision
Mask and landmark prediction for Descriptron: torchvision detectors, SAM2-PAL propagation and DINOv3 landmark transfer.
pip install descriptron-vision
descriptron-train --task masks --coco-json annotations.json --img-dir images/ \
--output-dir out/ --total-iters 20000
descriptron-predict --checkpoint out/model_final_*.pth --coco-json annotations.json \
--img-dir images/ --annotations_out predictions.json
No compiler required. torch and torchvision are ordinary wheels on Linux, macOS and Windows. For CUDA, install torch from PyTorch's own index first:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
pip install descriptron-vision
On a Mac the detectors can use the Apple GPU through PyTorch's MPS device, which is why this backend exists: Detectron2 has no macOS wheels and no Apple Silicon support.
Two optional dependencies that cannot be declared
PyPI rejects a git dependency in package metadata, so neither SAM2 nor Detectron2 is listed. Both are imported lazily, and the error names the command to install them. The Docker image carries both ready to run.
Choosing a backbone
--arch v1 (default) is maskrcnn_resnet50_fpn; --arch v2 is
maskrcnn_resnet50_fpn_v2. v2 scores higher on COCO, but on a few hundred
training images v1 won on 3 of 3 folds of a grouped species hold-out — its
lighter two-FC box head converges further in the same budget. Measured on the
data, not assumed from the model zoo.
Release files for descriptron-vision 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| descriptron_vision-2.0.3.tar.gz | 171.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| descriptron_vision-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 356.2 kB
Release files / descriptron_vision-2.0.3.tar.gz
| Download URL | descriptron_vision-2.0.3.tar.gz |
|---|---|
| Size | 171.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1db594037f2801572e35e025382709d94afc3e0c6599c87f6dcc1b28c42f205a
|
|
BLAKE2b-256 checksum How to use checksums |
532bbca269f8628821f654653a8f5365318ebc121644f34ad72e510b6091c2dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / descriptron_vision-2.0.3-py3-none-any.whl
| Download URL | descriptron_vision-2.0.3-py3-none-any.whl |
|---|---|
| Size | 184.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8d4a899493e4587322f72ab9b97fe41ec6f28b6676ebb79447289f515ea561a
|
|
BLAKE2b-256 checksum How to use checksums |
6c501ec114b0522ad467761884a70a5f278cc47b59f56e1cf7cfafb0a60b4666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|