Skip to main content

Pipeline for building deep learning models to classify PhenoCam images.

Project description

PhenoCamSnow

Documentation Status Code style: black

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

Professor Jochen Stutz and Zoe Pierrat.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phenocam-snow-0.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

phenocam_snow-0.1.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file phenocam-snow-0.1.1.tar.gz.

File metadata

  • Download URL: phenocam-snow-0.1.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for phenocam-snow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e081e81dd1c95aebda7563e3b589a178f2ec6bed51613390571dd97be9155f8a
MD5 4acd73d8fdf39e9b9ff6ec54bc32a6fb
BLAKE2b-256 546b7f48a6cbde36b7fdad6e7004c7be379518a1cab2c73ee356a6c64a0d2892

See more details on using hashes here.

File details

Details for the file phenocam_snow-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for phenocam_snow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 107eeba68df4a6a92831f5594dd4f3ad9da13c8e423058405bf85858527e31bb
MD5 21a8ed456104f1b5320b1ba1c0cde7c8
BLAKE2b-256 b34c09b308cfce5f4195cd9863faa1b42e9ad291580644ff9de0b269d79e3781

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page