Package: pyradox
pyradoxThis python library helps you with implementing various state of the art neural networks in a totally customizable fashion using Tensorflow 2Installationpip install pyradoxorpip install git+https://github.com/Ritvik19/pyradox.gitUsageModulesModuleDescriptionInput ShapeOutput ShapeUsageRescaleA layer that rescales the input:x_out = (x_in -mu) / sigmaArbitrarySame shape as inputcheck hereConvolution 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 hereDensely 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 hereDenseNet 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 hereDenseNet 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 hereDenseNet 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 hereDense 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 hereVGG 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 hereInception 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 hereInception 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 hereXception 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 hereEfficient 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 hereConv 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 hereRes 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 hereRes 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 hereRes 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 hereInception 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 hereInception 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 8Block 17Block 35NAS 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 hereNAS Net Adjust BlockAdjusts the inputprevious pathto match the shape of theinputNAS Net Normal A CellNormal cell for NASNet-ANAS Net Reduction A CellReduction cell for NASNet-AMobile 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 hereMobile 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 hereInverted 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 hereSEBlockAdds 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 hereConvNetsModuleDescriptionInput ShapeOutput ShapeUsageGeneralized 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 hereDensely 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 hereDensely 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 hereDensely 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 hereGeneralized VGGA generalization of VGG network4D tensor with shape (batch_shape, rows, cols, channels)4D or 2D tensorusage 1usage 2VGG 16A modified implementation of VGG16 network4D tensor with shape (batch_shape, rows, cols, channels)2D tensor with shape (batch_shape, new_dim)usage 1usage 2VGG 19A modified implementation of VGG19 network4D tensor with shape (batch_shape, rows, cols, channels)2D tensor with shape (batch_shape, new_dim)usage 1usage 2Inception 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 hereGeneralized 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 hereXception 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereEfficient 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereRes 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 hereInception 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 hereNAS 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 hereNAS 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 hereNAS 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 hereMobileNetCustomized Implementation of MobileNet4D tensor with shape (batch_shape, rows, cols, channels)4D tensor with shape (batch_shape, new_rows, new_cols, new_channels)usage 1usage 2Mobile 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 1usage 2Mobile 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 1usage 2Seg 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 hereU 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 hereDenseNetsModuleDescriptionInput ShapeOutput ShapeUsageDensely 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 hereDensely 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