This is a small exploratory project to play around with ImageNet models and explore the Pytorch library.
The Deploying PyTorch in Python via a REST API with Flask has been used as a reference and starting point for this project.
First, you will need to configure a Python environment.
An environment.yml file has been provided to that effect.
This project assumes the use of micromamba and has only been tested under Linux OS.
To create the environment:
make create-envIf you are using a different Conda tool
make CONDA_TOOL="<YOUR_CONDA_TOOL>" create-envThe application and Python dependencies can then be installed
make installTo build the application as a Docker container
make docker-buildTo run the application
make docker-runOr, with the application module mounted to the Docker container for live-reload development
make docker-run-devThis project uses Nox to automate linting checks, autoformatting and running tests.
Check lint
make check-lintFix lint
make fix-lintRun tests
make testTo run all checks and fixes
nox