Skip to content

Repository files navigation

tensornet

Open in Colab

Deepnet is an open-source library that can be used for solving problems of Computer vision in Deep Learning.

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

Install Dependencies

Install the required packages
pip install -r requirements.txt

Features

DeepNet currently supports the following features:

Models

ModelsDescription
ResNetResNet-18
ResModNetA modified version of ResNet-18
CustomNetA modified version of ResNet-18
MaskNet3A model to predict the Segmentation mask of the given image.
DepthMaskNet8A model to predict the Monocular Depth Maps of the given image.

Training and Validation

FunctionalityDescription
TrainTraining and Validation of the model
ModelHandles all the function for training a model
DatasetContains classes to handle data for training the model

Metrics

Losses

LossDescription
DiceResNet-18
SSIMA modified version of ResNet-18
MSEMean squared error (squared L2 norm) between each element in the input and target
BCEBinary Cross Entropy between the target and the output
BCEWithLogitsLossCombination of Sigmoid layer and the BCE in one single class
RMSERoot mean squared error (squared L2 norm) between each element in the input and target

Weighted Combination of loss functions

Scheduler

  • StepLR
  • ReduceLROnPlateau
  • OneCycleLR

Data Augmentation

  • Resize
  • Padding
  • Random Crop
  • Horizontal Flip
  • Vertical Flip
  • Gaussian Blur
  • Random Rotation
  • CutOut

Utilities

UtilityDescription
GRADCAMCalculates GradCAM(Gradient-weighted Class Activation Map) saliency map
GradCAMppCalculate GradCAM++ salinecy map using heatmap and image
LRFinderRange test to calculate optimal Learning Rate
CheckpointLoading and saving checkpoints
ProgressBarDisplay Progress bar
TensorboardCreates Tensorboard visualization
SummaryDisplay model summary
PlotPlot the graph of a metric, prediction image and class accuracy

Dependencies

DeepNet has the following third-party dependencies

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

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.

Releases

Packages

Used by

Contributors

Languages