Anti spoofing with the Datasouls dataset
Installation
pip install -U datasouls_antispoof
Example inference
Colab notebook with the example:
Dataset
ID & RD anti spoofing challenge
Four types of images:
- real
- replay
- printed
- mask2d
Training
Define the config.
Example at datasoluls_antispoof/configs
Define the environmental variable IMAGE_PATH that points to the folder with the dataset.
Example:
export IMAGE_PATH=<path to the folder with images>
Inference
python -m torch.distributed.launch --nproc_per_node=<num_gpu> datasouls_antispoof/inference.py \
-i <path to images> \
-c <path to config> \
-w <path to weights> \
-o <output-path> \
--fp16
Pre-trained models
| Models | Validation accuracy | Config file | Weights |
|---|---|---|---|
| swsl_resnext50_32x4d | 0.9673 | Link | Link |
| tf_efficientnet_b3_ns | 0.9927 | Link | Link |
Metadata
Release files for datasouls-antispoof 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 |
|---|---|---|---|---|
| datasouls_antispoof-0.0.4.tar.gz | 6.8 kB | Without provenance | Details for datasouls_antispoof-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasouls_antispoof-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for datasouls_antispoof-0.0.4-py2.py3-none-any.whl |
Total release size: 18.6 kB
Release files / datasouls_antispoof-0.0.4.tar.gz
| Download URL | datasouls_antispoof-0.0.4.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2414002aa150234b8a041fabf918c12638c9125c198e73232f985322e438b9e3
|
|
BLAKE2b-256 checksum How to use checksums |
b8fcaabce976e9f7e6ea62e74623694d5a6ba41a45a25cf195430c854da9b236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / datasouls_antispoof-0.0.4-py2.py3-none-any.whl
| Download URL | datasouls_antispoof-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e528a2d2d414a927f070dba4a68f4169f189cfa5dd0f43ad5dfee601f4644dd0
|
|
BLAKE2b-256 checksum How to use checksums |
01ae9fe758bbddf806f5b0ab4215b569312321789173c567e25f119dc7afca04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Security for datasouls-antispoof 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.