Skip to main content

A high-level deep learning library build on top of PyTorch.

Project description

TensorNet

MIT License Version

TensorNet is a high-level deep learning library built on top of PyTorch.

NOTE: This documentation applies to the MASTER version of TensorNet only.

Installation

You can use pip to install tensornet

pip install torch-tensornet

If you want to get the latest version of the code before it is released on PyPI you can install the library from GitHub

pip install git+https://github.com/shan18/TensorNet.git#egg=torch-tensornet

Features

TensorNet currently supports the following features

  • Model architectures
    • ResNet18
    • A custom model called BasicNet
  • Model utilities
    • Loss functions
      • Cross Entropy Loss
      • Binary Cross Entropy Loss
      • Mean Square Error Loss
      • SSIM and MS-SSIM Loss
      • Dice Loss
    • Evaluation Metrics
      • Accuracy
      • RMSE
      • MAE
      • ABS_REL
    • Optimizers
      • Stochastic Gradient Descent
    • Regularizers
      • L1 regularization
      • L2 regularization
    • LR Schedulers
      • Step LR
      • Reduce LR on Plateau
      • One Cycle Policy
    • LR Range Test
    • Model Checkpointing
    • Tensorboard
  • Model training and validation
  • Datasets (data is is returned via data loaders)
    • MNIST
    • CIFAR10
    • TinyImageNet
    • MODEST Museum Dataset
  • Data Augmentation
    • Resize
    • Padding
    • Random Crop
    • Horizontal Flip
    • Vertical Flip
    • Gaussian Blur
    • Random Rotation
    • CutOut
  • GradCAM and GradCAM++ (Gradient-weighted Class Activation Map)
  • Result Analysis Tools
    • Plotting changes in validation accuracy and loss during model training
    • Displaying correct and incorrect predictions of a trained model

How to Use

For examples on how to use TensorNet, refer to the examples directory.

Dependencies

TensorNet has the following third-party dependencies

  • torch
  • torchvision
  • torchsummary
  • tqdm
  • matplotlib
  • albumentations
  • opencv-python

Documentation

Documentation making for the library is currently in progress. So until a documentation is available please refer to the following table for various functionalities and their corresponding module names.

Functionality Module Name
Learner, Callbacks and Tensorboard engine
Dataset downloading and preprocessing data
GradCAM and GradCAM++ gradcam
Models, loss functions and optimizers models
CUDA setup and result analysis utils

For a demo on how to use these modules, refer to the notebooks present in the examples directory.

Contact/Getting Help

If you need any help or want to report a bug, raise an issue in the repo.

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

torch-tensornet-0.9.1.tar.gz (40.7 kB view details)

Uploaded Source

File details

Details for the file torch-tensornet-0.9.1.tar.gz.

File metadata

  • Download URL: torch-tensornet-0.9.1.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for torch-tensornet-0.9.1.tar.gz
Algorithm Hash digest
SHA256 de9d6521e85d1dec249947686600dc1e297100a6190c952b7c5af10d8b36a3e9
MD5 2e1a0f35fe190ff5892c31f6de21ed57
BLAKE2b-256 518d9e643fa530920a539be54c4be1d0a1be5a208d6d2455e83b675536f64cbb

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