Detecto

Latest version: v1.2.2

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

Scan your dependencies

Page 1 of 2

1.2.2

List of changes:

* Add a new `model_name` parameter to `core.Model` (94)
* The default model remains the same (`"fasterrcnn_resnet50_fpn"`, or `Model.DEFAULT`)
* New options include the following:
* `"fasterrcnn_mobilenet_v3_large_fpn"` (`Model.MOBILENET`)
* `"fasterrcnn_mobilenet_v3_large_320_fpn"` (`Model.MOBILENET_320`)
* Fix occasional bug with drawing bounding boxes for the `detect_live` function (101)

1.2.1

List of changes:

* Allow support for bounding box edge values to be provided in any order (66)
* Before, only `xmin`, `ymin`, `xmax`, `ymax` was supported in the XML files
* Add `pretrained` flag to `core.Model` to specify whether to use PyTorch's pretrained weights (71)

1.2.0

A few features and bug fixes are included in this release that update the behavior of the package. Most users should remain unaffected and not experience any noticeable performance differences or bugs; however, please take a look at the following change list to note everything that has been changed:

* Change `Dataset` to group objects by image when indexing (40, 60, 62)
* Previously, if an image had multiple labeled objects in it, the `Dataset` would treat each object as a separate row/index
* The dimensions of `boxes` and `labels` in the `targets` dict are now `(N, 4)` and `N`, respectively, where `N` is the number of labeled objects in each image (`labels` has changed from a string to a list of strings)
* The `xml_to_csv` function now has an additional column named `image_id`
* Add more detailed verbose messages on calls to `model.fit` (53)
* Now, the `verbose` flag is set to `True`
* A warning is given if the user is trying to fit the model on a CPU
* Training and validation progress is shown for each epoch
* Pin `torch` and `torchvision` dependency versions to `1.6.0` and `0.7.0`, respectively (52)

To prevent these changes from affecting existing codebases, users can lock their Detecto version to anything below `1.2.0` to ensure no breaking changes.

1.1.6

Fix bug with float values in XML files (47, 49)

1.1.5

Fix bug with float values in XML files (47)

1.1.4

Fixes a bug where validation loss uses the training dataset instead of the validation dataset (38)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.