Skip to main content

Basic framework for training models with PyTorch

Project description

boiler-pytorch

Basic framework for training stuff in PyTorch. It's quite tailored to projects I've been working on lately, so it's meant for personal use. Its sole purpose is to do away with boilerplate code, and having it here makes it easier to share it across projects.

Install

pip install boilr

Usage example/template

There's a usage example that can be useful as template. It's a basic VAE for MNIST quickly hacked together. The example files/folders are:

  • example.py
  • models/
  • experiments/

Install requirements and run the example:

pip install -r requirements.txt
CUDA_VISIBLE_DEVICES=0 python example.py

Requirements:

  • python 3.7
  • numpy 1.17.4
  • matplotlib 3.1.2
  • torch 1.4.0
  • torchvision 0.5.0
  • tensorboard 2.1.0 (it also works without, but it won't save tensorboard logs)
  • tqdm 4.40.2

Project details


Download files

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

Source Distribution

boilr-0.5.8.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

boilr-0.5.8-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

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