Go to OpenArt main site
Upload workflow

Tenofas' modular FLUX Workflow v.4.0

5.0

3 reviews
49
13.9K
4.7K
15
Description

V4.0 update (September 8th, 2024):  total rework of the workflow with some new modules

This is a modular and easy to use ComfyUI workflow for FLUX (by Black Forest Labs. Inc.). It is still a "work in progress" as FLUX is a new model and new tools for FLUX are coming day after day.

I created this workflow mostly for "realistic portrait photo" images, but it can be used for any kind of image you want to create thanks to its modularity.

The workflow is divided in several nodes' groups (modules) each with a specific color. You can find a detailed guide here: https://civitai.com/articles/6848 (now updated to v.4.0)
I will try to keep the guide updated as much as possible, but if you need a better description or explanation of its modules just let me know.

The first module (blue) is the core FLUX workflow with FLUX LoRA's loader. This workflow is based on the original UNET/Clips files release on August the 1st by Black Forest Labs. You can set everything about FLUX and its LoRA's in this module, and this is all you need to generate basic FLUX images. Prompts are managed by the green modules on top of the workflow (more about prompts below).

The red module is the "Workflow Control Center", you have a switch-node (on/off) to activate the other modules (or part of the modules) and allows you to chose the prompt method you want to use.

The green module is about prompts. There are now (v.3.2) 4 different prompt methods:

1) Classic txt2img prompt: just write your prompt (you can use also other languages, not just english. Italian, German, French and Spanish can be used and they work).

2) Img2img with Florence2 model prompt: just upload an image, the Florence2 model will generate a textual prompt from the image and the workflow will use that as a prompt.

3) LLM model generated prompt: let AI write your prompt, just input a few keywords or a brief description of what you want and let Groq (or OpenAI) write the prompt. The LLM prompt generator requires a Groq api key (free), or an OpenAI api key, that you can get at  https://groq.com/ . The API key has to be saved in Comfy by using a specific node (TaraApiKeySaver) that you have to add manually anywhere in the workflow, paste the Key in It, start a generation and you are done. You can remove the node once It Is saved. (Note: Groq LLM service will not allow NSFW prompt generation).

4) Batch txt2img prompts: you just write a .txt file with all the prompts you want to use, load the .txt file and click Queue... all the prompts in the .txt file will be generated as a single batch.

Then you have the last two modules: the FaceDetailer and the Ultimate SD Upscaler.

With the FaceDetailer you can improve the details of your portraits as it will improve the realism of the skin texture according to the positive and negative prompts in the module. This module is based on a SD1.5 checkpoint and Lora as there aren't yet LoRA's with the level of detail that you could achieve with SD 1.5 for realism.

The Ultimate SD Upscaler allows you to upscale your image keeping the same level of detail of the original image.

The yellow modules in the workflow are a couple of Notes node with explanation on its use and with links to all the files you may need to run it.


Enjoy.

Discussion

(No comments yet)

Loading...

Author

4
9.4K
92
31.7K

No reviews yet

  • - latest (14 days ago)

  • - v20240830-191311

  • - v20240823-150622

  • - v20240821-125900

  • - v20240820-132442

  • - v20240818-153353

  • - v20240818-084738

  • - v20240815-152522

Primitive Nodes (46)

Any Switch (rgthree) (3)

Anything Everywhere3 (1)

CreateExtraMetaData (1)

DownloadAndLoadFlorence2Model (1)

Fast Groups Bypasser (rgthree) (1)

Florence2Run (1)

FluxGuidance (2)

Image Comparer (rgthree) (5)

ImageSmartSharpen+ (1)

InjectLatentNoise+ (1)

ModelSamplingFlux (4)

Note Plus (mtb) (7)

PortraitMasterBaseCharacter (1)

PortraitMasterMakeup (1)

PortraitMasterSkinDetails (1)

PortraitMasterStylePose (1)

Power Lora Loader (rgthree) (1)

PrimitiveNode (2)

ReActorFaceBoost (1)

SimpleMathDual+ (2)

Switch any [Crystools] (1)

UnetLoaderGGUF (1)

mxSlider (6)

Custom Nodes (62)

Comfyroll Studio

  • - CR Text Input Switch (4 way) (1)

  • - CR Overlay Text (2)

  • - CR Prompt Text (1)

ComfyUI

  • - VAEDecode (2)

  • - BasicGuider (2)

  • - LoadImage (2)

  • - SamplerCustomAdvanced (3)

  • - LatentUpscale (1)

  • - DisableNoise (1)

  • - LatentCrop (1)

  • - RandomNoise (2)

  • - PreviewImage (2)

  • - SaveImage (1)

  • - UpscaleModelLoader (1)

  • - BasicScheduler (2)

  • - KSamplerSelect (1)

  • - VAELoader (1)

  • - DualCLIPLoader (1)

  • - CLIPTextEncode (2)

  • - ConditioningZeroOut (1)

  • - SplitSigmasDenoise (1)

  • - UNETLoader (1)

  • - GetImageSize+ (2)

  • - ImageApplyLUT+ (1)

  • - SDXLEmptyLatentSizePicker+ (1)

  • - SimpleMath+ (1)

  • - UltralyticsDetectorProvider (2)

  • - FaceDetailer (4)

  • - SAMLoader (1)

  • - UnzipPrompt //Inspire (1)

  • - LoadPromptsFromFile //Inspire (1)

  • - SaveImageWithMetaData (5)

  • - TaraPresetLLMConfig (1)

  • - TaraAdvancedComposition (1)

  • - ReActorFaceSwap (1)

  • - UltimateSDUpscale (1)

  • - Text Find and Replace (1)

  • - Convert Masks to Images (2)

Checkpoints (0)

LoRAs (0)