royfxy / Rock_Paper_Scissor_AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✊✌️✋ Rock_Paper_Scissor_AI

A computer-human Rock Paper Scissor game

Data

To capture the data, use the following code:

python main.py --run data_cap --gesture <rock|paper|scissor>

Train

To train the gesture prediction model, use the following code:

python main.py --run train [--model_name <name_of_model>] [--epochs <number_of_epochs>]

Using --k_fold will run k-fold cross validation on the model.

python main.py --run train [--model_name <name_of_model>] --k_fold <number_of_folds>  [--epochs <number_of_epochs>]

Play the game

To play the game, use the following code:

python main.py [--run game] [--model_name <name_of_model>]

About

License:Apache License 2.0


Languages

Language:Python 100.0%