You must have Python 3 installed before installation.
To install the module, use:
git clone https://github.com/Dima-Ryabinin/AI
cd AI
pip install -r requirements.txtFor Unix systems, you can also do:
chmod +x ./main.pyTo run script via ./main.py instead of python main.py
Argument -t or --train starts neural network training (default dataset is train).
python main.py --trainArgument -p or --predict starts the prediction of object classes from the dataset.
python main.py --predictAdditional arguments:
- Use
-e <count>or--epochs-count <count>to set the number of epochs to train (Default: 50). - Use
-b <batch size>or--batch-size <batch size>to set the batch size (Default: 32). - Use
-m <model name>or--model <model name>to set the model name (Default: model). - Use
-d <dataset name>or--dataset <dataset name>to set the dataset name (Default for train: train, Default for predict: test)