This repository contains some handy tensorflow and pytorch scripts for
- Building custom Models
- Data loading and visualizing
- Model Training and Optimizing
- Visualizing Model feature maps and kernels
- Visualizing Training
- Keras pipeline for Feed Forward NN
Splitting the dataset using KFold, then creating wrapping data in TF dataset api. Then building and training the Feed forward NN. Save the model and visualize the training process- Tensorflow/Basic Pipeline/Basic.py.py
-
NN using ModuleList
A simple Neural Network with nn.ModuleList(). You can define its architecture at the runtime.- PyTorch/Models/NN.py
-
VGG based models
VGG is the simplest symmetric CNN to start with.- PyTorch/Models/VGG_6.py
- PyTorch/Models/VGG_16.py
-
ResNet based models
ResNet (Residual Networks) is another simple CNN which uses skip connections to solve vanishing gradient problems and go even deeper.- PyTorch/Models/ResNet_8.py
- PyTorch/Models/ResNet_12.py
- PyTorch/Models/Resnet_18.py (graph)
-
Siamese Network
Siamese networks are the twin networks that try to learn the best possible embeddings for the input data. We then use distance between these embeddings to distinguish between images.- PyTorch/Models/Simple_siamese.py
-
Triplet Network
Same as the siamese networks but here there are thress netwokrs that try to learn the possible embeddings for the input data.- PyTorch/Models/Simple_triplet.py
I use Mnist dataset as an example for both of the above models.
The training folder contains various training pipelines.
In this folder you can find scripts to visualize the kernels and weights learnt by the model. It is a good way to audit the learning process of the models.