Skip to content

Repository files navigation

GenIA: Generative "Inteligencia Artificial" (es) Image Generator

Install

git clone https://github.com/agustavo87/genia.git

A docker development enviroment with php 8.3 (cli), extensions and composer is included. Can be boot up with:

docker compose up

It spins up a development server at localhost:80. If the composer dependencies are not installed yet

  • installs dependendencies with composer
  • create .env file
  • links storage folders

In order to enter with a shell inside the development container

docker compose exec -it web bash

IDE Helper

You can generate IDE helper files

composer run help-ide

Also the Model IDE helper files and docblocks are automatically generated when make:model artisan command is finished.

QA

Several actions can be run with composer scripts

# Code style check and fixes with laravel pint (phpcs).
composer run pint

# The static code analysis can be run with:
composer run larastan

# Test the app (Unit, Components, Feature test suites).
composer run test

A git hook that is run before a commit is provided. It make the following checks:

  • Code style check
  • Static code analysis.
  • Tests

Can be installed with

# Installs the git hook for style, code analysis and tests
composer run install-git-hook

Adapters

The adapters can be configured in config/generate.php. Or with the GENIA_ADAPTER enviroment variable.

Fake

The default adapter is fake is meant for development purposes. It just shows the image at resources/images/fake_img.png

Getimg

You need an account in Getimg. The Getimg adapter with its API Key can be activated via enviroment variables. For example, modifying the .env file.

GENIA_ADAPTER=getimg
GETIMG_KEY=[your-key-here]

Models

Currently the models available are those of Stable Diffusion. There are 29 available stable-diffusion models, plus the stable-diffusion-xl model, the default if no model is specified. Any of them can be setup with its ID on the GETIMG_MODEL enviroment variable.

GETIMG_MODEL=dark-sushi-mix-v2-25
ID Name Author
absolute-reality-v1-8-1 AbsoluteReality v1.8.1 https://www.buymeacoffee.com/lykon
dream-shaper-v8 DreamShaper v8 https://www.buymeacoffee.com/lykon
realistic-vision-v5-1 Realistic Vision v5.1 https://civitai.com/user/SG_161222
icbinp-seco ICBINP SECO https://civitai.com/user/residentchiefnz
dark-sushi-mix-v2-25 Dark Sushi Mix v2.25 https://civitai.com/user/Aitasai
absolute-reality-v1-6 AbsoluteReality v1.6 https://www.buymeacoffee.com/lykon
synthwave-punk-v2 SynthwavePunk v2 https://github.com/JustMaier
arcane-diffusion Arcane Diffusion https://twitter.com/Nitrosocke
moonfilm-reality-v3 MoonFilm Reality v3 https://ko-fi.com/leopasama
moonfilm-utopia-v3 MoonFilm Utopia v3 https://ko-fi.com/leopasama
moonfilm-film-grain-v1 MoonFilm FilmGrain v1 https://ko-fi.com/leopasama
openjourney-v4 Openjourney v4 https://prompthero.com/
realistic-vision-v3 Realistic Vision v3 https://civitai.com/user/SG_161222
icbinp-final ICBINP Final https://civitai.com/user/residentchiefnz
icbinp-relapse ICBINP Relapse https://civitai.com/user/residentchiefnz
icbinp-afterburn ICBINP Afterburn https://civitai.com/user/residentchiefnz
xsarchitectural-interior-design InteriorDesign https://civitai.com/user/Xsarchitectural
mo-di-diffusion Modern Disney Diffusion https://twitter.com/Nitrosocke
anashel-rpg RPG https://huggingface.co/Anashel
eimis-anime-diffusion-v1-0 Anime Diffusion https://huggingface.co/eimiss
something-v2-2 Something V2.2 https://twitter.com/nocrypt_
icbinp ICBINP https://civitai.com/user/residentchiefnz
analog-diffusion Analog Diffusion https://twitter.com/wavymulder
neverending-dream NeverEnding Dream https://www.buymeacoffee.com/lykon
van-gogh-diffusion Van Gogh Diffusion https://huggingface.co/dallinmackay
openjourney-v1-0 Openjourney https://prompthero.com/
realistic-vision-v1-3 Realistic Vision v1.3 https://civitai.com/user/SG_161222
stable-diffusion-v2-1 Stable Diffusion v2.1 https://stability.ai/
stable-diffusion-v1-5 Stable Diffusion v1.5 https://runwayml.com/

The models provided by Getimg can change. To check available models of the stable-diffussion family the following command can be used:

$ php artisan gen:getimg-models

Other parameters

# Number of refinement iterations the model performs to transform random noise into a coherent image.
GETIMG_STEPS=8

About

GenIA: Generative "Inteligencia Artificial" (es) Image Generator

Resources

Stars

4 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages