Skip to content

A linear toggle-based all-in-one ComfyUI workflow with text2image, image2image, face swap, upscale, & controlnet.

License

Notifications You must be signed in to change notification settings

Tekaiguy/STTP-Workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logo

A compact and efficient toggle-based ComfyUI workflow by Luckytime

Features

  • Control Net
  • Text to image
  • Image to image
  • Face swap
  • Upscale
  • No overlapping nodes
  • No wasted space
  • SD models only

Dependencies

ComfyUI

rgthree-comfy

efficiency-nodes-comfyui

ComfyUI-ReActor

Overview

Workflow

The workflow is a pipeline of 5 groups that moves from left to right. It starts with conditioning in the 'ControlNet' group, creates an image from an empty latent in the 'Generate' group, reprocesses the image in the 'Redraw' group, fixes the face in the 'Face Swap' group, and finally upscales and saves the image in the 'Upscale' group. Any combination of the 5 groups may be used without errors. If the last three groups are used independently, a local image can be uploaded as a starting point.

Toggles

There are 3 'Group Toggle' nodes included in the workflow so they are always within reach. Switching off the groups lets you pause after each step and decide whether an image is worth refining. If you want to send an image to the next group, the seed from any previous KSampler should be frozen by clicking 'Last Queued Seed'.

Groups

ControlNet

This group lets you use a ControlNet model and a preprocessed (helper) image to guide the creation of an image in the 'Generate' or 'Redraw' groups. The refresh toggle helps overcome a known bug where changing the ControlNet options does not refresh the workflow and allow you to create a new image.

Workflow:

  1. Load a ControlNet model
  2. Load preprocessed image
  3. Choose ControlNet strength
  4. Toggle to refresh the workflow

Generate

Generate

This group lets you create a new image from an empty latent (AKA text2img). The positive & negative prompts are shared by the 'Generate' and 'Redraw' groups.

Workflow:

  1. Write postive/negative prompts
  2. Load a checkpoint
  3. Choose image size
  4. Choose CLIP skip
  5. Toggle ControlNet
  6. Load Loras
  7. Choose KSampler settings
  8. Preview/Save the image

Redraw

This group lets you create variations using an image as a starting point (AKA img2img) (AKA Hires Fix). It takes the decoded image from 'Generate' and upscales, re-encodes, and redraws it with a second KSampler. If used alone, it redraws the loaded image from step 0. The positive & negative prompts are shared by the 'Generate' and 'Redraw' groups.

Workflow:

  1. Load an image
  2. Choose rescale size
  3. Load a checkpoint
  4. Choose CLIP skip
  5. Toggle ControlNet
  6. Load Loras
  7. Choose KSampler settings
  8. Preview/Save the image

Redraw

Face Swap

This group lets you replace the face in an image with a face from a loaded image. You can choose the face indexes to be swapped if there is more than one person (ex: "2,3" -> "0,4"). If used alone, it face-swaps the loaded image from step 0. The image can be rescaled to ensure the face swap is effective. Note: if you are getting a black box for an output, open "ComfyUI/custom_nodes/comfyui-reactor/scripts/reactor_sfw.py" in a text editor, and change 'True' on the last line to 'False'.

Workflow:

  1. Load an image
  2. Load a face
  3. Choose original face indexes
  4. Choose swap face indexes
  5. Choose original image rescale size
  6. Preview/Save the original image
  7. Preview/Save the swapped image

Face-Swap_Upscale

Upscale

This group lets you upscale an image using an upscale model, rescale the image down to save drive space, and save the image to your ComfyUI output folder. If used alone, it upscales the loaded image from step 0.

Workflow:

  1. Load an image
  2. Load an upscale model
  3. Choose rescale size

Shortcuts

The 1-4 number keys are shortcuts for useful camera views. You can adjust the bookmark nodes to suit your display.

Changelog

Version 1

  • Added Generate, Redraw, Face Swap, and Upscale groups

Version 2

  • Added ControlNet group
  • Added ControlNet toggle for Generate and Redraw groups
  • Separated CLIP skip for Generate and Redraw groups
  • Added primitives to allow changing face indexes
  • Rearranged and renumbered nodes
  • Switched to main ReActor repo

About

A linear toggle-based all-in-one ComfyUI workflow with text2image, image2image, face swap, upscale, & controlnet.

Resources

License

Stars

Watchers

Forks