ComfyUI Node

FUSE KSampler

A ComfyUI node in Face Enhancement with 22 inputs and 2 outputs.

By WASasquatch·Created about a year ago·Updated 9 months ago· 13
FUSE KSampler
  • model
  • vae
  • images
  • positive
  • negative
  • mask_optionals
  • yolo_optionals
  • images
  • masks
use_cachetrue
seed0
steps20
cfg8.00
sampler_name
scheduler
denoise0.50
yolo_detector
sam_segmenter
sam_model_typevit_b
face_id0
face_orderlinear
face_size512
face_padding20
force_squaretrue
CategoryFace Enhancement

Inputs (22)

NameTypeDefaultDescription
modelMODELBase model for sampling.
vaeVAEVAE model for the sampler.
imagesIMAGEInput image batch for face detection and upscaling.
positiveCONDITIONINGPositive conditioning for the sampler.
negativeCONDITIONINGNegative conditioning for the sampler.
use_cacheBOOLEANtrueUse internal caching to speed up workflow iteration.
seedINT00–18446744073709550000Seed for the sampler. Used for determinisitc results with some models.
stepsINT20Number of steps for the sampler.
cfgFLOAT8.00Classifier-Free Guidance scale for the sampler.
sampler_nameCOMBOChoose the sampler to use for sampling.
schedulerCOMBOChoose the scheduler to use for sampling.
denoiseFLOAT0.500–1Denoising strength for the sampler. When doing img2img like FUSE, lower values adhere more to the input image (face).
yolo_detectorCOMBOChoose the YOLO detector to use for face detection. Must be trained on faces. See: https://github.com/akanametov/yolo-face
sam_segmenterCOMBOChoose the SAM segmentation model to use for face segmentation. See: https://github.com/facebookresearch/segment-anything?tab=readme-ov-file#model-checkpoints
sam_model_typeCOMBOvit_bSAM model type
face_idINT0Index of the face to process in the image (0 is the first face found, -1 is all faces).
face_orderCOMBOlinearOrder to process detected faces: linear (top-to-bottom, left-to-right), linear_reverse (bottom-to-top, right-to-left), largest_bbox (largest face first), smallest_bbox (smallest face first).
face_sizeCOMBO512The resolution to sample the face crop at.
face_paddingINT200–16384Padding in pixels (int) to pad the face crop with.
force_squareBOOLEANtrueForce 1:1 square face crops
mask_optionalsoptDICTOptional masking and blending settings from FUSESamplerMaskOptions node.
yolo_optionalsoptDICTOptional YOLO detection settings from FUSEYOLOSettings node.

Outputs (2)

NameTypeDescription
imagesIMAGE
masksMASK