darabos / ai-alchemy

An element merging game powered by AI
12 stars 0 forks source link

AI Alchemy Game

My kids love alchemy games, like Doodle God Universe, where you combine elements to make new elements. AI is great for this kind of game: every combination will produce something cool!

Screenshot

How to run it

You need at least 12 GB GPU memory to run this.

We use ComfyUI for generating the images. Start it up.

You can replace the ComfyUI workflow in comfyui_workflow.json if you want. As it is, it's SDXL Turbo.

pip install -r requirements.txt
uvicorn server:app --reload

Then go to http://localhost:8000/ and start playing! You can change the rules and prompts in the files in configs. Or add your own! (See screenshots for some variants.)

It uses an optimized Mistral-7B-Instruct model for generating the text.

Is AI art okay?

Mostly no. I think it violates the copyright of the original authors. Individual creators are especially vulnerable. They can't possibly hunt down every model trained on their work.

My excuses are:

The prompt in elemental.yml is copied from a random image on Civitai. It lists the following artists: