Home

Awesome

pyradox

This python library helps you with implementing various state of the art neural networks in a totally customizable fashion using Tensorflow 2

Downloads Downloads Downloads


Installation

pip install pyradox

or

pip install git+https://github.com/Ritvik19/pyradox.git

Usage

Modules

ModuleDescriptionInput ShapeOutput ShapeUsage
RescaleA layer that rescales the input: x_out = (x_in -mu) / sigmaArbitrarySame shape as inputcheck here
Convolution 2DApplies 2D Convolution followed by Batch Normalization (optional) and Dropout (optional)4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Densely ConnectedDensely Connected Layer followed by Batch Normalization (optional) and Dropout (optional)2D tensor with shape (batch_size, input_dim)2D tensor with shape (batch_size, n_units)check here
DenseNet Convolution BlockA Convolution block for DenseNets4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
DenseNet Convolution BlockA Convolution block for DenseNets4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
DenseNet Transition BlockA Transition block for DenseNets4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Dense Skip ConnectionImplementation of a skip connection for densely connected layer2D tensor with shape (batch_size, input_dim)2D tensor with shape (batch_size, n_units)check here
VGG ModuleImplementation of VGG Modules with slight modifications, Applies multiple 2D Convolution followed by Batch Normalization (optional), Dropout (optional) and MaxPooling4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inception ConvImplementation of 2D Convolution Layer for Inception Net, Convolution Layer followed by Batch Normalization, Activation and optional Dropout4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inception BlockImplementation on Inception Mixing Block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Xception BlockA customised implementation of Xception Block (Depthwise Separable Convolutions)4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net BlockImplementation of Efficient Net Block (Depthwise Separable Convolutions)4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Conv Skip ConnectionImplementation of Skip Connection for Convolution Layer4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net BlockCustomized Implementation of ResNet Block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net V2 BlockCustomized Implementation of ResNetV2 Block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NeXt BlockCustomized Implementation of ResNeXt Block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inception Res Net Conv 2DImplementation of Convolution Layer for Inception Res Net: Convolution2d followed by Batch Norm4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inception Res Net BlockImplementation of Inception-ResNet block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)Block 8 Block 17 Block 35
NAS Net Separable Conv BlockAdds 2 blocks of Separable Conv Batch Norm4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
NAS Net Adjust BlockAdjusts the input previous path to match the shape of the input
NAS Net Normal A CellNormal cell for NASNet-A
NAS Net Reduction A CellReduction cell for NASNet-A
Mobile Net Conv BlockAdds an initial convolution layer with batch normalization and activation4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Mobile Net Depth Wise Conv BlockAdds a depthwise convolution block. A depthwise convolution block consists of a depthwise conv, batch normalization, activation, pointwise convolution, batch normalization and activation4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inverted Res BlockAdds an Inverted ResNet block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
SEBlockAdds a Squeeze Excite Block4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here

ConvNets

ModuleDescriptionInput ShapeOutput ShapeUsage
Generalized Dense NetsA generalization of Densely Connected Convolutional Networks (Dense Nets)4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Densely Connected Convolutional Network 121A modified implementation of Densely Connected Convolutional Network 1214D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Densely Connected Convolutional Network 169A modified implementation of Densely Connected Convolutional Network 1694D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Densely Connected Convolutional Network 201A modified implementation of Densely Connected Convolutional Network 2014D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Generalized VGGA generalization of VGG network4D tensor with shape (batch_shape, rows, cols, channels)4D or 2D tensorusage 1 usage 2
VGG 16A modified implementation of VGG16 network4D tensor with shape (batch_shape, rows, cols, channels)2D tensor with shape (batch_shape, new_dim)usage 1 usage 2
VGG 19A modified implementation of VGG19 network4D tensor with shape (batch_shape, rows, cols, channels)2D tensor with shape (batch_shape, new_dim)usage 1 usage 2
Inception V3Customized Implementation of Inception Net4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Generalized XceptionGeneralized Implementation of XceptionNet (Depthwise Separable Convolutions)4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Xception NetA Customised Implementation of XceptionNet4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient NetGeneralized Implementation of Effiecient Net4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B0Customized Implementation of Efficient Net B04D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B1Customized Implementation of Efficient Net B14D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B2Customized Implementation of Efficient Net B24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B3Customized Implementation of Efficient Net B34D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B4Customized Implementation of Efficient Net B44D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B5Customized Implementation of Efficient Net B54D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B6Customized Implementation of Efficient Net B64D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Efficient Net B7Customized Implementation of Efficient Net B74D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NetCustomized Implementation of Res Net4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 50Customized Implementation of Res Net 504D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 101Customized Implementation of Res Net 1014D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 152Customized Implementation of Res Net 1524D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net V2Customized Implementation of Res Net V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 50 V2Customized Implementation of Res Net 50 V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 101 V2Customized Implementation of Res Net 101 V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res Net 152 V2Customized Implementation of Res Net 152 V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NeXtCustomized Implementation of Res NeXt4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NeXt 50Customized Implementation of Res NeXt 504D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NeXt 101Customized Implementation of Res NeXt 1014D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Res NeXt 152Customized Implementation of Res NeXt 1524D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
Inception Res Net V2Customized Implementation of Inception Res Net V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
NAS NetGeneralised Implementation of NAS Net4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
NAS Net MobileCustomized Implementation of NAS Net Mobile4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
NAS Net LargeCustomized Implementation of NAS Net Large4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)check here
MobileNetCustomized Implementation of MobileNet4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)usage 1 usage 2
Mobile Net V2Customized Implementation of Mobile Net V24D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)usage 1 usage 2
Mobile Net V3Customized Implementation of Mobile Net V34D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)usage 1 usage 2
Seg NetGeneralised Implementation of SegNet for Image Segmentation Applications4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, rows, cols, channels)check here
U NetGeneralised Implementation of UNet for Image Segmentation Applications4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, rows, cols, channels)check here

DenseNets

ModuleDescriptionInput ShapeOutput ShapeUsage
Densely Connected NetworkNetwork of Densely Connected Layers followed by Batch Normalization (optional) and Dropout (optional)2D tensor with shape (batch_size, input_dim)2D tensor with shape (batch_size, new_dim)check here
Densely Connected ResnetNetwork of skip connections for densely connected layer2D tensor with shape (batch_size, input_dim)2D tensor with shape (batch_size, new_dim)check here