A site for creating MTG cards from a neural network AI. This assumes you have a working neural net installation from github. Reports so far show that this is only working in linux,
Installation instructions assume you have a working understanding of installing software in linux. Depending on your distribution some of these dependencies may already be installed.
- Install Python 3
- Install Pip
- Install git
- Clone this repository:
git clone https://github.com/croxis/mtgai.git
- (Optional) Create and activate a python 3 virtual environment
- 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.1.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 run
- Point your favorite web browser to
http://localhost:5000
and cry over the sad state of the site.