To determine the season in the image, go to the folder neural-network and run application with arguments -f or --file:
python seasons.py -f [path to image]
To train a neural network you, go to the folder neural-network and run application with arguments -t or --train:
python seasons.py -t [path]
To changing training set you need to add or remove images in folder neural-network/[season_name]. Next remove file neural-network/training_set.json and run application with arguments -t or --train:
python seasons.py -t [path]
Then wait for the error reaches the required value
To create new neural networ remove file neural-network/network.json and run application with arguments -t or --train:
python seasons.py -t [path]
Then wait for the error reaches the required value
To view help information run application with arguments -h or --help:
python seasons.py -h
Help information:
Use: python main.py [-h] [-t] [-f]
-t, --train [epsilon] Training a neural network or create new (default epsilon is 0.0001)
-f, --file [file_path] Classification of seasons