ComfyUI-RefSampling

ComfyUI-RefSampling
★ 5

参考图像引导注意力注入视觉风格提示图像生成控制
通过实现Reference UNet与Ref Sampler,向生成过程注入参考图像的注意力,引导输出在内容与视觉风格上贴合参考图像。
💡 用参考图像引导生成,使内容与风格贴合参考。
🍴 3 Forks💻 Python🔄 2024-09-11
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8f9eee5e2cdb
ref_sampling
input_image
ref_sampling_img
📄 README

ComfyUI-RefSampling

This is a proof-of-concept repo that implements:

  • “Reference CNet” found in popular Image generation applications such as Automatic11
  • Allows image generation that adheres content to a reference image
  • Visual Style Prompting
  • Allows image generation that adheres style to a reference image
  • Both of these techniques utilize attention injection from reference images into the sampled/generated image.

    Examples

    Text to Image Generation

    Image Prompt: “orange gorilla stripes”

    Visual Style Prompt: “black and orange stripes”

    Image to Image Generation

    Image Prompt: “an old man”

    Visual Style Prompt “blue dragon, flames”