A site for creating MTG cards from a neural network AI.
- Install Python 3
- Install Pip
- Install git
- (Optional) Create and activate a python 3 virtual environment
- Clone this repository:
git clone https://github.com/croxis/mtgai.git
- Change directory:
cd mtgai
- Install dependencies:
pip install -r requirements.txt
You may need to use sudo if not using a virtual environment. - Copy sample_hs_v3.lua in the lua directory to where the card generator directory is
- Open config.py with your favorite editor.
- Change the SECRET_KEY to text of your choice.
- Change SNAPSHOTS_PATH to point to the directory you store your snapshots in. Subdirectory names can be used to group snapshot types together.
- Change GENERATOR_PATH to point to the directory that houses sample.lua, train.lua, and the sample_hs_v2.lua file you just moves
- Run the server:
python3 manage.py runserver
- Point your favorite web browser to
http://localhost:5000
and cry over the sad state of the site.