A python package that you can use to create neural networks with one line of code.
Tensorflow==2.4.0
scikit-learn==0.24.0
opencv-python
- Multilayer Perceptron [Image classification]
- Convolutional Nerual Network [Image classification]
Dataset
|__LABEL 1
|__IMG 1
|__IMG 2
.
.
|__IMG n
|__LABEL 2
|__IMG 1
|__IMG 2
.
.
|__IMG n
.
.
.
|__LABEL n
|__IMG 1
|__IMG 2
.
.
|__IMG n
import nniol
nn = DenseNet(use_pretrained_model=False, path_of_dataset='<PATH OF DATASET HERE>', neurons_per_layer=[<LIST OF INTEGERS SPECIFYING THE NUMBER OF NEURONS IN EACH LAYER>], activations=[<LIST OF STRINGS SPECIFYING ACTIVATION FUNCTIONS FOR EACH LAYER>], model_path='<PATH TO SAVE MODEL>', epochs=<NUMBER OF EPOCHS TO TRAIN>)
nn.predict('<PATH OF DATA TO PASS FOR INFERENCE>')
import nniol
nn = DenseNet(use_pretrained_model=True, model_path='<PATH OF SAVED MODEL>')
nn.predict('<PATH OF DATA TO PASS FOR INFERENCE>')
import nniol
nn = ConvNet(use_pretrained_model=False, path_of_dataset='<PATH OF DATASET HERE>', filters_per_layer=[<LIST OF INTEGERS SPECIFYING THE NUMBER OF FILTERS IN EACH LAYER>], activations=[<LIST OF STRINGS SPECIFYING ACTIVATION FUNCTIONS FOR EACH LAYER>], model_path='<PATH TO SAVE MODEL>', epochs=<NUMBER OF EPOCHS TO TRAIN>)
nn.predict('<PATH OF DATA TO PASS FOR INFERENCE>')
import nniol
nn = ConvNet(use_pretrained_model=True, model_path='<PATH OF SAVED MODEL>')
nn.predict('<PATH OF DATA TO PASS FOR INFERENCE>')