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.pymodels/experiments/
Install requirements and run the example:
pip install -r requirements.txt
CUDA_VISIBLE_DEVICES=0 python example.py
Tested with:
python 3.7.6numpy 1.18.1matplotlib 3.1.3torch 1.4.0torchvision 0.5.0tensorboard 2.1.0(it also works without, but it won't save tensorboard logs)pillow 7.0tqdm 4.41.1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boilr-0.6.1.tar.gz.
File metadata
- Download URL: boilr-0.6.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f15e4b0559be9943bd2671907d01eab71ad2bee4fa6b13ee77bb204a807cece8
|
|
| MD5 |
0b41d42476e6747c546ff6452e6c2b66
|
|
| BLAKE2b-256 |
bb4333f86d8b26d5afadba4062644b717a87bcc9c3e2e8952c8333d896782733
|
File details
Details for the file boilr-0.6.1-py3-none-any.whl.
File metadata
- Download URL: boilr-0.6.1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c469ddf0a4cd097a8b2effd5455f9ab3e4f22bf915f99121acc8562dc2d5aa3
|
|
| MD5 |
613e1c918131f516b093a55053fb5a76
|
|
| BLAKE2b-256 |
b9381e019e1d3961a2d6d6b83c650658a4c48d878c5dfcba6f49e19568fe207e
|