AWC Helpers
Wildlife detection and species classification inference tools combining MegaDetector with custom species classifiers.
Installation
1. Install PyTorch
Windows (with CUDA GPU):
pip install "torch<=2.9.1" "torchvision<=0.24.1" --index-url https://download.pytorch.org/whl/cu128
Linux / Mac / Windows with CPU:
pip install "torch<=2.9.1" "torchvision<=0.24.1"
2. Install AWC Helpers
From PyPI:
pip install awc-helpers
Usage
from awc_helpers import DetectAndClassify
# Initialize the pipeline
pipeline = DetectAndClassify(
detector_path="models/md_v1000.0.0-redwood.pt",
classifier_path="models/awc-135-v1.pth",
label_names=["species_a", "species_b", "species_c"],
detection_threshold=0.1,
clas_threshold=0.5,
)
# Run inference on image paths
results = pipeline.predict(
inp=["path/to/image1.jpg", "path/to/image2.jpg"],
clas_bs=4
)
for result in results:
print(result)
# print example:
# AWCResult(identifier='"path/to/image1.jpg"', bbox=(0.1, 0.2, 0.3, 0.4), bbox_label='animal', bbox_conf=0.95, labels_probs=(('kangaroo', 0.87),))
Documenntation
Refer to this for more details
License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
Non-commercial use only. Derivative works must use the same license.
Metadata
Release files for awc-helpers 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awc_helpers-0.2.1.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| awc_helpers-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.6 kB
Release files / awc_helpers-0.2.1.tar.gz
| Download URL | awc_helpers-0.2.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64f42ba4b9640820df72f0d59f5efcd339a671d398d36b666f8560b00358f8b3
|
|
BLAKE2b-256 checksum How to use checksums |
4a2f53ab841b66f929934a97995502e4dc89513e672736e98fe21a869ab8fb89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / awc_helpers-0.2.1-py3-none-any.whl
| Download URL | awc_helpers-0.2.1-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c722621cfc612f8521e8a25174ab5a9f9326e071b300e0536f8fd5fde759533
|
|
BLAKE2b-256 checksum How to use checksums |
4cbea8f114debda574ad3132ba1e705ab64274099170f3becc6b61663a3ea6ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|