Skip to content

darabos/ai-alchemy

Repository files navigation

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:

  • It was super easy. The models are public. The game was working before I had time to think about ethics.
  • There is no alternative for such a game. I could not have drawn millions of images for every possible combination.

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

About

An element merging game powered by AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published