How to run Image generation AI with eudaimonia?

Quick guide to setup comfyui on your computer and generate images with a model (pony)

This feature allows you to play a session (normal or EstimAI) with your favourite character. When enabled, it will generate in real-time images that complement the session with the character you've picked.
You can create and customize multiple characters in anime or realistic style. It has been developed with Pony models in mind for their performances, flexibility and lewd capabilities.
In the future I hope to be able to generate images that correspond as closely as possible to what's happening in the session (character's position, face's expression, background, etc.).
An account is required to use this feature, you can signup here.
You can manage your characters here.

Video

What do I need to run this?

You'll need 4 things:

  • At least 8go available VRAM (which means it might be hard to run both a LLM and an image AI on the same computer ~would require at least 16GB VRAM for 8B LLM + Pony~)
  • A software to run the model (ComfyUI)
  • A model (Pony base model is heavily recommanded)
  • A character (Lora + Eudaimonia interface)

How to run it?

First, you'll need to install ComfyUI. Go to this link then follow the installation instructions.
Once you've downloaded and installed it, you may need to to enable CORS, otherwise it won't work.
Under Windows: open the file you're using to launch ComfyUI with Notepad (e.g. “run_nvidia_gpu.bat”) and add “--enable-cors-header *” to the command line. See the image below:

Run ComfyUI (On windows launch run_nvidia_gpu.bat)

Download and run a model

Now you need a model to generate the images.
Eudaimonia's live image generation has been designed and developed around Pony models and its variants. I may add more options later, but Pony is just the best and easiest to work with.

Anime or Realistic?

It's way more consistent and easier (and less likely to generate monstrosity) to generate anime pictures (especially for NSFW/pornographic content) than realistic models. So I would advise to use anime settings.
But if you want to have realistic characters, you can go with PonyRealistic which is working very decently.

To get the model go to CivitAI and create an account. Make sure to set the PG filter (trust me).
Once it's downloaded, place the file in to ComfyUI's folder named: models/checkpoints/

List of recommanded models for ANIME generation:

List of recommanded models for REALISTIC generation:

This is not an exhaustive list, feel free to test any other model

I need a character

Last thing you want to get is a character to play with. For this, you'll need a character LORA which you can find on CivitAI. Go to this page and filter the models by model's type: Lora or Dora and Base model: Pony.
There are a lot of anime characters, and it will be harder to find realistic ones. But you can use an anime character with Pony Realistic. Quality can vary considerably, so don't hesitate to try out several.
Download the Lora you like, then place it into ComfyUI's folder: models/loras/

Settings in Eudaimonia

Generation settings

Now you need to fill some settings directly in Eudaimonia. Click the cog icon at the top right.
At the very least, you need to fill in the checkpoint path. For example, if you downloaded 'Prefect Pony XL' and moved it in "models/checkpoints", just copy the full file's name of the model into the checkpoint field (eg: prefectPonyXL_v40.safetensors).
Other settings are fine by default.

Character creation

You're now ready to create your first Eudaimonia character. Click on the pencil icon in the top right corner.
You'll need to fill the lora's path, which means that if you downloaded then placed the character Lora in "models/loras/" just copy its file's name into this field.
Then you'll need to fill the triggers. Those are keywords you can find on the Lora's page, which are used to trigger the character and his outfit in the prompt. Just copy them into the fields.
For example:
You want to play with Yor Briar from this Lora
Trigger words are showing in the description
The character trigger words are: "yor briar, black hair, red eyes, earrings, white hairband, hairband, long hair, sidelocks" (don't add "1girl" tag, eudaimonia already handles this.)
And to get her dress outfit: "dress, cleavage, bare shoulders, jewelry, collarbone, sleeveless, black dress, halterneck" (as "white hairband, hairband" already appears in character trigger words)

Other fields are options to customize your character, fill as you want.

Face Detailer

Improve face's quality (recommanded)
As I've said before, it's harder to get consistent quality generations for realistic characters. One thing you can do to improve the quality is to select the option 'Face Detailer' to improve the generated faces.
Enabling this option will increase the generation time, make sure it's still decent (under 10-12s)For this option to work, you must also install the following two comfyui nodes:

If an error occurs when you try to generate with facedetailer on, you probably need to download the face_yolov8m.pt model.
You can find face_yolov8m.pt on huggingface.
Then place it in: "ComfyUI_windows_portable\ComfyUI\models\ultralytics\bbox\face_yolov8m.pt" (create the folder if they don't exist).

If ComfyUI is running and all settings valid, click the CREATE button
Wait for the generation to end, then save the character.

Fillers images

Once your character is created you will have to generate few images that will be used as fillers during a session. During a session, sometimes it's not possible to generate the image in time, so one of these fillers images will be used as an adequate placeholder.
Generate all fillers, regen the ones you don't like, then pick 6 of them.
Save, then you're set to play with this character!
You can regenerate new fillers by clicking 'Manage fillers' button on your character card. If you update your character, make sure to regenerate them.

Sampling parameters

In Eudaimonia you can set different sampling parameters: CFG scale, number of steps, sampler and scheduler. Default settings are fine and should work almost always.
But if you want to try different settings you should keep the following points in mind:

  • You must be able to generate images under 10-12s, which means that increasing the number of steps or changing the sampler may not work.
  • Best parameters are usually the ones recommanded on the page of the checkpoint you use. For example WAI-ANI model recommands 30steps, 7 CFG, Euler a/DPM++ 2M Karras as sampler.
  • To decrease the generation time you can lower the number steps (~12 is probably the bare minimum) and/or enable low-resolution mode.
  • Usually to generate more realistic images, you should lower the CFG. Depending on the model, try values from ~3 to 6.

Realistic generation:

As explained before I heavily recommend using face detailer.
And you can read this article from the creator of PonyRealism to improve the quality.


LORA

Lora is just a small model trained on a specific task. There are multiple type of loras: for styles, characters, outfits, specific actions, etc.
Once you've found a character LORA you like, I suggest you check its page and the recommanded strength. 1 strength is common, but some LORA might be overtrained so a lower value can help increase the overall quality of image.
Higher strength means the character takes more importance in the generation process, while a lower strength will probably lead to a loss of consistency.