Loading repository data…
Loading repository data…
matt-dreyer / repository
This script generates AI-based artwork based on a text prompt. It uses various models from both local sources and Hugging Face's model hub. The script can generate a collage of all created images, and also creates an HTML page to display all the images. This was developed using Windows 11 on a Dell Precision 5570 laptop with integrated GPU.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This script generates AI-based artwork based on a text prompt. It uses various models from both local sources and Hugging Face's model hub. The script can generate a collage of all created images, and also creates an HTML page to display all the images.
By default the script is configured to automatically download and use several models hosted by Hugging Face. The user has the option to manually download and use .safetensors models that can be found on various websites.
Models included by default include:

First download the repo from GitHub by running this command in your shell:
git clone https://github.com/matt-dreyer/ai_art_generator.git
Create a virtual environment to install into (pretty much required for Linux).
cd ai_art_generator
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
To install the required libraries, navigate to the directory where the requirements.txt is located and run this command in your shell:
pip install -r requirements.txt
python art_generator.py [--no-watermark] [--no-collage]
--no-watermark : Use this flag if you want to disable watermarking on the generated images.--no-collage : Use this flag if you want to disable the creation of a collage from the generated images.The program will first attempt to read the contents of a text file named "prompt.txt" and use that for the image prompt. If that file does not exist, or the content is not plain text, it will prompt the user for input. Any line in "prompt.txt" starting with a "#" will be ignored.
The generated images will be stored in a folder named "generated-images". If the folder does not exist, it will be created. The collage, if created, will also be stored in the same folder.
This project is licensed under the terms of the MIT license.