Skip to main content

ADV-TRAIN : ADV-TRAIN is Deep Vision TRaining And INference framework

This is a framework built on top of pytorch to make machine learning training and inference tasks easier. Along with that it also enables easy dataset and network instantiations, visualize boundaries and more.

Read the latest documentation at https://adv-train.readthedocs.io/en/latest/

Why use this framework?

  • It is very easy to use and well documented and tested
  • The framework supports resume (Yes you can restart training from where ever you left off when your server crashed!).
  • The framework also implements support for train/validation splits of your choice with early stopping baked in.
  • Single argument change for using different datasets and models i.e. convenience at you fingertips
  • Dataloader parameters optimized for highest possbile performance when traning.
  • Supports multi-gpu training (single parameter update required)

Installing

To install the pip package use the command

pip install advtrain

Contributing

To clone the repo, it is recommended to use a shallow clone, this is recommended as previous versions have hosted large pretrained models

git clone --depth <specify depth> https://github.com/DeepakTatachar/ADV-TRAIN

Requirements are listed in requirements.txt. Use the command

pip install -r requirements.txt

to install all required dependencies

Documentation

Read the latest documentation at https://adv-train.readthedocs.io/en/latest/

To locally make the documentation, navigate to /docs and type

make html

This will generate a build directory and will house a html folder within which you shall find index.html (i.e. path is /docs/build/html/index.html)

Open this in any web browser. This project uses Sphnix to autogenerate this documentation.

Running Examples

This repo also has examples on how to train and visualize boundaries in /examples folder. A readme file is provided in the ./examples folder to help out with using and running the examples.

Pretrained Models

We provide pretrained models in a previous version of the repo. It is "hosted" here. These models have various weight quantized VGG and ResNet models, named according to the naming convention

datasetname_inputQuant_architecture_activationQuant_weightQuant.ckpt

When running you program using advtrain, place the models in the (current working directory) cwd/pretrained/dataset_name and when load is set to true in instantiate_model it will automatically load the correct model.

Metadata

Release files for advtrain 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for advtrain 0.0.2
File Size Uploaded Provenance
advtrain-0.0.2.tar.gz 25.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for advtrain 0.0.2
File Interpreter ABI Platform
advtrain-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 69.5 kB

Release files / advtrain-0.0.2.tar.gz

Download URL advtrain-0.0.2.tar.gz
Size 25.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b2129d34b33b76b744b50dfc89b06a3cc10895082692c53c4deec1e877788595
BLAKE2b-256 checksum
How to use checksums
3289cf8cd21927cec180aad0209bab61f61d94affcdce5d3ea9f9712133ee5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release files / advtrain-0.0.2-py3-none-any.whl

Download URL advtrain-0.0.2-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d89cc9725f43b3ba15065e6e34184932179bf02f968d51ad351e332f19f2af3
BLAKE2b-256 checksum
How to use checksums
c66d36a601510d06b8f7f2b19a7de2c0b6b8a93d683a3b125084a9c9fb47ac9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Security for advtrain 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page