Python-detr

Latest version: v0.1.7

Safety actively analyzes 623360 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2

This release contains several improvements compared to the initial release of DETR.

Highlights
Detectron2 support
DETR now can be used with Detectron2 in a seamless way. It reuses the original abstractions of DETR, while making a compatibility layer so that it fits Detectron2's API. More information can be found in the [README under the `d2/` folder](https://github.com/facebookresearch/detr/blob/master/d2/README.md)

TorchScript support for all models
DETR models can now be natively exported to torchscript. This enables DETR to be run in C++ via libtorch. Converting a model to torchscript is easy:
python
model = torch.hub.load('facebookresearch/detr', 'detr_resnet50', pretrained=True)
model = torch.jit.script(model)
now the model run entirely in torchscript!


Notebooks for panoptic segmentation and attention visualization
We added two new notebooks in the repo, which should hopefully facilitate using and understanding how DETR works:

- [DETR's hands on Colab Notebook](https://colab.research.google.com/github/facebookresearch/detr/blob/colab/notebooks/detr_attention.ipynb): Shows how to load a model from hub, generate predictions, then visualize the attention of the model (similar to the figures of the paper)
- [Panoptic Colab Notebook](https://colab.research.google.com/github/facebookresearch/detr/blob/colab/notebooks/DETR_panoptic.ipynb): Demonstrates how to use DETR for panoptic segmentation and plot the predictions.

Training logs for all models
For easier reproducibility, we provide full training logs for the detection models available in torchhub. They are available together with the model weights in https://github.com/facebookresearch/detr#model-zoo

Changelog

New features
- Add Detectron2 wrapper (103, 119)
- Add torchscript support for hub detection models (51)
- Add torchscript support to panoptic models (87)
- Hub config for panoptic models (54)
- Add Dockerfile (26)
- Add model logs to README (86)

Improvements
- avoid downloading the same file multiple times (60)
- improve robustness of plot_logs function, handle single directory argument for 'logs' param (62)
- Move colab to github from drive (5)
- Unifying the format of argparse (24)

Bugfixes
- Hot-fix for panoptic hub-conf (56)
- Update panoptic model hashes (18)
- update url (8)
- fix IndexError (6)

Documentation
- Add new colab link in README (114)
- Update README with details on segmentation (100)
- Changed incorrect bbox format in loss_bbox docstring (90)
- fix repo name (2)
- Add ISSUE_TEMPLATE (31)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.