# resattention
A python library for implementing a Residual Attention Convolutional Neural Network and training it for image classification problems. This model supports multi-class classification and is easy to use both for training and testing purposes.
The code is Python 2 and 3 compatible.
# Installation
Fast install:
pip install resattention
For a manual install get this package:
$wget https://github.com/garain/resattention/archive/master.zip
$unzip master.zip
$rm master.zip
$cd resattention-master
Install the package:
python setup.py install
# Example
from resattention import models
import tensorflow as tf
model = models.AttentionResNetCifar10(shape=(32,32,3),n_classes=2,n_channels=3)#RGB images
model = models.AttentionResNetCifar10(shape=(32,32,1),n_classes=6,n_channels=1)#GrayScale images
model.compile(tf.keras.optimizers.Adam(lr=0.0001), loss='categorical_crossentropy', metrics=['accuracy'])
model.summary()
# Models supported
AttentionResNetCifar10
AttentionResNet92
AttentionResNet56
# Please cite this publication if this library comes to any use:
Garain, B. Ray, P. K. Singh, A. Ahmadian, N. Senu and R. Sarkar, “GRANet: A Deep Learning Model for Classification of Age and Gender from Facial Images,” in IEEE Access, doi: 10.1109/ACCESS.2021.3085971.
Metadata
Release files for resattention 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resattention-0.0.4.tar.gz | 3.9 kB | Without provenance | Details for resattention-0.0.4.tar.gz |
Release files / resattention-0.0.4.tar.gz
| Download URL | resattention-0.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4aebcf25113391ed907f5a2d7b5a3a2ebaecfcd6cce12784e3acb4238b23767d
|
|
BLAKE2b-256 checksum How to use checksums |
422423e78e9f26732e89b68030ae6baf3591ee08596ac257421247129cfd4908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for resattention 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.