numpy torch

A ComfyUI custom node that provides fine-grained control over style transfer using Redux style models.
一个 ComfyUI 自定义节点,提供使用 Redux 风格模型进行精细风格迁移控制。
https://github.com/user-attachments/assets/d6cf3b71-0221-4804-a757-e43feab0850f
conditioning: Original prompt input / 原始提示词输入style_model: Redux style model / Redux 风格模型clip_vision: CLIP vision encoder / CLIP 视觉编码器reference_image: Style source image / 风格来源图像prompt_influence: Prompt strength (1.0=normal) / 提示词强度 (1.0=正常)reference_influence: Image influence (1.0=normal) / 图像影响 (1.0=正常)style_grid_size: Style detail level (1=27×27 strongest, 14=1×1 weakest) / 风格细节等级 (1=27×27最强, 14=1×1最弱)interpolation_mode: Token interpolation method / Token插值方法image_processing_mode: Image processing mode / 图像处理模式center crop: Square center crop / 正方形中心裁剪keep aspect ratio: Maintain original ratio / 保持原始比例autocrop with mask: Automatic crop using mask / 使用蒙版自动裁剪mask: Optional mask for local control / 用于局部控制的可选蒙版autocrop_padding: Padding pixels for autocrop (0-256) / 自动裁剪的边距像素 (0-256)如果还没有安装 ComfyUI Manager,请先安装
打开 ComfyUI,进入 Manager 标签页
搜索 “Redux Prompt” 并安装
将此仓库克隆到你的 ComfyUI 自定义节点目录:
“`bash
cd ComfyUI/custom_nodes
git clone https://github.com/CY-CHENYUE/ComfyUI-Redux-Prompt.git
“`
重启 ComfyUI
将 “Redux Style with Prompt Control” 节点添加到你的工作流程中
连接必需的输入:
根据需要调整参数:
将输出连接到你的图像生成管线
prompt_influence values will emphasize the text prompt较高的 prompt_influence 值会强调文本提示词
reference_influence values will emphasize the reference image style较高的 reference_influence 值会强调参考图像风格
较低的风格网格值(接近1)提供更强、更详细的风格迁移
较高的风格网格值(接近14)提供更轻微、更概括的风格迁移
不同的插值模式会影响风格迁移的质量
autocrop with mask mode is selected蒙版输入仅在选择 autocrop with mask 模式时使用