Trading Card Game (TCG) entirely built with local generative AI using
Large Langage Model (LLM) + AI image generation tool
see the results on this reddit post: https://www.reddit.com/r/TCG/comments/1f960wt/how_to_create_a_fully_ai_generated_tcg/
- Install ollama
- run
ollama run mixtral
in command to automatically download it
- quick video from Fireship youtube channel
- Hugging face link
- LLM_TCG.ipynb - is the main file and contains the different steps to create the TCG
- out_images folder - contains all images
- generate_image.py - Flux.1 [dev] piece of code to generate images with some prompt
- card_layers.py - add simple layered informations (HP, mana...) to a raw card
- generate_image_quick.py - test on a quicker version of generate_image.py (NOT WORKING)
pip install -U diffusers
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124
see pytorch Start Locallypip install transformers
pip install sentencepiece
pip install protobuf
pip install accelerate