| --- |
| license: bsd-3-clause |
| library_name: libreyolo |
| pipeline_tag: object-detection |
| datasets: |
| - detection-datasets/coco |
| tags: |
| - object-detection |
| - retinanet |
| - torchvision |
| - libreyolo |
| --- |
| |
| # LibreRetinaNetr50v2 |
|
|
| RetinaNet (ResNet-50 FPN v2 with GroupNorm heads), repackaged for LibreYOLO. This is an |
| inference-only model with 38,198,935 parameters. |
|
|
| ```python |
| from libreyolo import LibreYOLO |
| |
| model = LibreYOLO("LibreRetinaNetr50v2.pt") |
| results = model.predict("image.jpg") |
| ``` |
|
|
| ## Source |
|
|
| Derived from [pytorch/vision](https://github.com/pytorch/vision) at commit |
| [`336d36e8db990a905498c73933e35231876e28bc`](https://github.com/pytorch/vision/commit/336d36e8db990a905498c73933e35231876e28bc). |
| Copyright (c) Soumith Chintala 2016 and torchvision contributors. The source |
| implementation is BSD-3-Clause. |
|
|
| Official checkpoint: [retinanet_resnet50_fpn_v2_coco-5905b1c5.pth](https://download.pytorch.org/models/retinanet_resnet50_fpn_v2_coco-5905b1c5.pth) |
|
|
| - Official file bytes: 153130989 |
| - Official SHA-256: `5905b1c544219215e544dbe319720397bc4e68de61a733a59350d7976645b769` |
| - Converted file bytes: 153139579 |
| - Converted SHA-256: `9ebdda7b2f496124233389bf42ea6efd906973b743392422a21757f94635c2f7` |
| - Published COCO val2017 box mAP: 41.5 |
|
|
| ## Model contract |
|
|
| - Input: RGB image, normalized with ImageNet mean/std. |
| - Resize: short side 800, long side capped at 1333, then bottom/right padding |
| to a multiple of 32. |
| - Output: contiguous COCO-80 boxes, scores, and class ids after per-level |
| candidate selection and class-aware NMS. |
| - Training: not implemented in LibreYOLO; `train()` raises. |
| - Export: dynamic-spatial, batch-one ONNX is validated. |
|
|
| ## Modifications |
|
|
| Checkpoint metadata was added for LibreYOLO's v1.0 schema. Learned tensors and |
| state-dict keys are unchanged. The native LibreYOLO graph strictly loads the |
| official state dict and has exact eager parity at every FPN feature, raw head, |
| and final detection. See `weights/convert_retinanet_weights.py` in the |
| [LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo). |
|
|
| ## License |
|
|
| The checkpoint publisher did not attach a separate per-object license file. |
| This mirror applies the releasing project's BSD-3-Clause license on an |
| **implied**, not publisher-confirmed, basis. Torchvision warns that pretrained |
| models may have their own licenses or terms derived from training data and |
| that users must determine whether they have permission for their use case. |
| COCO annotations are CC BY 4.0; source images retain their individual Flickr |
| terms. See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE). |
|
|