Glasses-detector

Latest version: v1.0.1

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

Scan your dependencies

1.0.1

Patch Notes

Minor patch to enable automatic weight downloading when using CLI. Also, updated [demo.ipynb](https://github.com/mantasu/glasses-detector/blob/main/notebooks/demo.ipynb). Please refer to the [major release](https://github.com/mantasu/glasses-detector/releases/tag/v1.0.0) for all the information.

1.0.0

![Banner](https://raw.githubusercontent.com/mantasu/glasses-detector/main/docs/_static/img/banner.jpg)

About

First stable[^1] release for **Glasses Detector**. Three tasks are supported for processing images with glasses: **classification**, **detection**, and **segmentation**. This includes glasses types and parts, as well as their shadows and eye-area. For all the available features and examples, please check [documentation](https://mantasu.github.io/glasses-detector/docs/features.html) and [notebook](https://colab.research.google.com/github/mantasu/glasses-detector/blob/main/notebooks/demo.ipynb).

> [!NOTE]
> Pre-trained weights for size `large` are not available as it seems most `medium` models perform better (less overfit due to tasks being binary). More experiments need to be conducted before `large` weights can be released in `v1.1.0`.

What's New

* **Features**
* Glasses and eye-area detection
* More categories for each task
* Better model performance
* Simpler CLI
* **Architecture**
* New package structure
* New model architectures
* Simpler customization process (better inheritance structure)
* **Data**
* More datasets
* Simpler data processing scripts
* Kaggle notebooks for sub-tasks
* **Documentation**
* Full documentation of package-specific code
* Features & examples
* Fancier documentation page style

Other

As before, although the code for training (e.g., datasets, metrics) is part of _PIP package_, the actual _data processing_, _training_, and _model analysis_ scripts are only available when fully cloning the repository. Please check [Data](https://github.com/mantasu/glasses-detector?tab=readme-ov-file#data) and [Running](https://github.com/mantasu/glasses-detector?tab=readme-ov-file#running) sections for details on how to train/test your own models.

[^1]: _Kind of stable_ since `large` weights are missing (technically not but they perform worse than `medium`)

0.1.1

Changes

Fixed version tag (`0.1.0` $\to$ `v0.1.0`) when the download link of the model weights is created.

0.1.0

Initial Release

This is the initial BETA release of `glasses-detector` package. The package structure is complete, however, not all the models are trained. In case custom models are preferred, training and testing scripts are fully ready.

The pre-trained weights are available for these models:
* **SunglassesClassifier** or `sunglasses-classifier`
* **FullGlassesSegmenter** or `full-glasses-segmenter`
* **FullSunglassesSegmenter** or `full-sunglasses-segmenter`

> **Note**: for classification, `"huge"` category of weights is missing. For full glasses segmentation, `"medium"` category of weights is missing. The other 4 categories of weights for both tasks are available.

Please refer to the [documentation](https://mantasu.github.io/glasses-detector/) page for more details.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.