PhenoCamSnow
PhenoCamSnow is a Python package for quickly building deep learning models to classify PhenoCam images.
Installation
PhenoCamSnow supports Python 3.7+ and can be installed via pip:
pip install phenocam-snow
Optional dependencies for development and documentation purposes can be installed by specifying the extras [dev] and [docs], repsectively.
Example Usage
The following code snippets show how to train and evaluate a model on classifying images from the canadaojp site into "snow", "no snow", and "too dark".
python -m phenocam_snow.train \
canadaojp \
--model resnet18 \
--learning_rate 5e-4 \
--weight_decay 0.01 \
--new \
--n_train 120 \
--n_test 30 \
--classes snow no_snow too_dark
This will print out the file path of the best model, which can be substituted into the next command.
python -m phenocam_snow.predict \
canadaojp \
[path/to/best_model.ckpt] \
resnet18 \
--categories snow no_snow too_dark
--url https://phenocam.nau.edu/data/latest/canadaojp.jpg
Advanced usage details can be found in the documentation.
Citation
If you use PhenoCamSnow for your work, please see CITATION.cff or use the citation prompt provided by GitHub in the sidebar.
Acknowledgements
Metadata
Release files for phenocam-snow 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| phenocam-snow-0.1.1.tar.gz | 14.2 kB | Without provenance | Details for phenocam-snow-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phenocam_snow-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for phenocam_snow-0.1.1-py3-none-any.whl |
Total release size: 30.1 kB
Release files / phenocam-snow-0.1.1.tar.gz
| Download URL | phenocam-snow-0.1.1.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e081e81dd1c95aebda7563e3b589a178f2ec6bed51613390571dd97be9155f8a
|
|
BLAKE2b-256 checksum How to use checksums |
546b7f48a6cbde36b7fdad6e7004c7be379518a1cab2c73ee356a6c64a0d2892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.16
|
Release files / phenocam_snow-0.1.1-py3-none-any.whl
| Download URL | phenocam_snow-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
107eeba68df4a6a92831f5594dd4f3ad9da13c8e423058405bf85858527e31bb
|
|
BLAKE2b-256 checksum How to use checksums |
b34c09b308cfce5f4195cd9863faa1b42e9ad291580644ff9de0b269d79e3781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.16
|
Security for phenocam-snow 0.1.1
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.