Style Transfer to Main Subject While Preserving the Background (No Inpaint Required)

5.0

0 reviews
63
5.8K
1.8K
3
Description

This workflow does the following:

  1. Remove the background image using RMBG,
  2. Invert the removed background mask for selecting the main subject as mask,
  3. Preserve the detail using ControlNet by Misto AI's canny(any ControlNet can be used),
  4. Apply the reference image style using IPAdapter(strength can be controlled via 'weight' parameter of IPAdapter node.
Node Diagram
Discussion
s
sansanshishi6 months ago

工作流报错不用慌,找我帮你搞定,V:ailaohuyoukiss

C
Chen Ruibin5 months ago

工作流中 的ip-adapeter节点中用到的clip 模型哪里下载

Author

21
128.1K
1.3K
402.1K

Reviews

No reviews yet

Versions (1)

  • - latest (9 months ago)

Primitive Nodes (0)

Custom Nodes (20)

  • - AlphaChanelAsMask (1)

  • - AnyLinePreprocessor (1)

ComfyUI

  • - VAEDecode (1)

  • - CheckpointLoaderSimple (1)

  • - LoraLoader (1)

  • - EmptyLatentImage (1)

  • - ControlNetLoader (1)

  • - VAEEncodeForInpaint (1)

  • - ControlNetApplyAdvanced (1)

  • - CLIPTextEncode (2)

  • - KSampler (1)

  • - PreviewImage (1)

  • - LoadImage (2)

  • - InvertMask (1)

  • - easy imageRemBg (1)

  • - IPAdapterUnifiedLoader (1)

  • - IPAdapterAdvanced (1)

  • - Image Save (1)

Checkpoints (1)

dreamshaperXL_sfwV2TurboDPMSDE.safetensors

LoRAs (1)

MJ52.safetensors