koishi-plugin-comfyui-kontext
Version:
支持图生图与图生视频的 Koishi 插件,基于 ComfyUI + DeepSeek
272 lines • 4.51 kB
JSON
{
"6": {
"inputs": {
"text": [
"201",
0
],
"clip": [
"38",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"8": {
"inputs": {
"samples": [
"31",
0
],
"vae": [
"39",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"31": {
"inputs": {
"seed": 31819742121797,
"steps": 15,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 1,
"model": [
"199",
0
],
"positive": [
"35",
0
],
"negative": [
"135",
0
],
"latent_image": [
"124",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"35": {
"inputs": {
"guidance": 2.5,
"conditioning": [
"177",
0
]
},
"class_type": "FluxGuidance",
"_meta": {
"title": "Flux引导"
}
},
"38": {
"inputs": {
"clip_name1": "clip_l.safetensors",
"clip_name2": "t5xxl_fp8_e4m3fn_scaled.safetensors",
"type": "flux",
"device": "default"
},
"class_type": "DualCLIPLoader",
"_meta": {
"title": "双CLIP加载器"
}
},
"39": {
"inputs": {
"vae_name": "ae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "加载VAE"
}
},
"42": {
"inputs": {
"image": [
"200",
0
]
},
"class_type": "FluxKontextImageScale",
"_meta": {
"title": "FluxKontextImageScale"
}
},
"124": {
"inputs": {
"pixels": [
"189",
0
],
"vae": [
"39",
0
]
},
"class_type": "VAEEncode",
"_meta": {
"title": "VAE编码"
}
},
"135": {
"inputs": {
"conditioning": [
"6",
0
]
},
"class_type": "ConditioningZeroOut",
"_meta": {
"title": "条件零化"
}
},
"136": {
"inputs": {
"filename_prefix": "RedKontext",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
},
"173": {
"inputs": {
"images": [
"42",
0
]
},
"class_type": "PreviewImage",
"_meta": {
"title": "预览图像"
}
},
"177": {
"inputs": {
"conditioning": [
"6",
0
],
"latent": [
"124",
0
]
},
"class_type": "ReferenceLatent",
"_meta": {
"title": "ReferenceLatent"
}
},
"189": {
"inputs": {
"upscale_method": "bicubic",
"megapixels": 1.5000000000000002,
"image": [
"42",
0
]
},
"class_type": "ImageScaleToTotalPixels",
"_meta": {
"title": "缩放图像(目标总像素)"
}
},
"190": {
"inputs": {
"direction": "up",
"match_image_size": true,
"spacing_width": 10,
"spacing_color": "black",
"image1": [
"189",
0
],
"image2": [
"8",
0
]
},
"class_type": "ImageStitch",
"_meta": {
"title": "Image Stitch"
}
},
"199": {
"inputs": {
"model_type": "flux",
"magcache_thresh": 0.20000000000000004,
"retention_ratio": 0.10000000000000002,
"magcache_K": 2,
"start_step": 0,
"end_step": -1,
"model": [
"209",
0
]
},
"class_type": "MagCache",
"_meta": {
"title": "MagCache"
}
},
"200": {
"inputs": {
"image": "RedKontext_00030_.png"
},
"class_type": "LoadImage",
"_meta": {
"title": "加载图像"
}
},
"201": {
"inputs": {
"prompt": ""
},
"class_type": "CR Prompt Text",
"_meta": {
"title": "⚙️ CR Prompt Text"
}
},
"203": {
"inputs": {
"filename_prefix": "latents/ComfyUI",
"samples": [
"31",
0
]
},
"class_type": "SaveLatent",
"_meta": {
"title": "保存Latent"
}
},
"209": {
"inputs": {
"unet_name": "flux1-dev-kontext_fp8_scaled.safetensors",
"weight_dtype": "fp8_e4m3fn"
},
"class_type": "UNETLoader",
"_meta": {
"title": "UNet加载器"
}
}
}