diff --git a/README.md b/README.md new file mode 100644 index 0000000..d3f8504 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# ComfyUI_Mexx_Poster + +## 功能简述 + +使用HTML模版,对图片进行编辑,形成定制化的图片,比如游戏卡牌、海报、商业广告等。 + +## 使用图例 + +![img.png](image/img.png) + +- 视频:[海报完事.mp4](image%2F%E6%B5%B7%E6%8A%A5%E5%AE%8C%E4%BA%8B.mp4) +- ComfyUI Workflow文件:[workflow-lcm-poster.json](workflow-lcm-poster.json) + +## 生成的效果图 + + diff --git a/image/img.png b/image/img.png new file mode 100644 index 0000000..1bc8f07 Binary files /dev/null and b/image/img.png differ diff --git a/image/海报完事.mp4 b/image/海报完事.mp4 new file mode 100644 index 0000000..aa80619 Binary files /dev/null and b/image/海报完事.mp4 differ diff --git a/workflow-lcm-poster.json b/workflow-lcm-poster.json new file mode 100644 index 0000000..8ce837a --- /dev/null +++ b/workflow-lcm-poster.json @@ -0,0 +1,521 @@ +{ + "last_node_id": 18, + "last_link_id": 23, + "nodes": [ + { + "id": 11, + "type": "CLIPTextEncodeSDXL", + "pos": [ + 418, + 515 + ], + "size": { + "0": 400, + "1": 270 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 13, + "slot_index": 0, + "label": "CLIP" + }, + { + "name": "text_g", + "type": "STRING", + "link": 18, + "widget": { + "name": "text_g" + }, + "label": "G文本" + }, + { + "name": "text_l", + "type": "STRING", + "link": 19, + "widget": { + "name": "text_l" + }, + "label": "L文本" + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 12 + ], + "shape": 3, + "slot_index": 0, + "label": "条件" + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncodeSDXL" + }, + "widgets_values": [ + 768, + 1024, + 0, + 0, + 768, + 1024, + "CLIP_G", + "CLIP_L" + ] + }, + { + "id": 10, + "type": "CLIPTextEncodeSDXL", + "pos": [ + 420, + 194 + ], + "size": { + "0": 400, + "1": 270 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 10, + "label": "CLIP" + }, + { + "name": "text_g", + "type": "STRING", + "link": 16, + "widget": { + "name": "text_g" + }, + "label": "G文本" + }, + { + "name": "text_l", + "type": "STRING", + "link": 17, + "widget": { + "name": "text_l" + }, + "label": "L文本" + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 14 + ], + "shape": 3, + "slot_index": 0, + "label": "条件" + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncodeSDXL" + }, + "widgets_values": [ + 768, + 1024, + 0, + 0, + 768, + 1024, + "CLIP_G", + "CLIP_L" + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 27, + 35 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 1 + ], + "slot_index": 0, + "label": "模型" + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 10, + 13 + ], + "slot_index": 1, + "label": "CLIP" + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2, + "label": "VAE" + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "MexxL_Dim_国风_LCM2.safetensors" + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1222, + 36 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 15, + "label": "Latent" + }, + { + "name": "vae", + "type": "VAE", + "link": 8, + "label": "VAE" + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 23 + ], + "slot_index": 0, + "label": "图像" + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 860, + 34 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1, + "label": "模型" + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 14, + "label": "正面提示词" + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 12, + "label": "负面提示词" + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2, + "label": "Latent" + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 15 + ], + "slot_index": 0, + "label": "Latent" + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 613256109114025, + "randomize", + 6, + 1, + "dpmpp_2m_sde", + "karras", + 1 + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 498, + 28 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0, + "label": "Latent" + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 768, + 1024, + 1 + ] + }, + { + "id": 12, + "type": "MexxSDXLPromptStyler", + "pos": [ + -63, + 236 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "text_positive", + "type": "STRING", + "links": [ + 16, + 17 + ], + "shape": 3, + "slot_index": 0, + "label": "text_positive" + }, + { + "name": "text_negative", + "type": "STRING", + "links": [ + 18, + 19 + ], + "shape": 3, + "label": "text_negative", + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "MexxSDXLPromptStyler" + }, + "widgets_values": [ + "Anime style, a cartoon Queen of Blades, skinny, very beautiful, very pretty, detailed blue eyes, dark red lips, ponytail, wind, flat-chest,Ice and Snow World, vibrant color, Bloody armored arm, decorated with complex patterns and exquisite lines, emitting an orgasmic sensation,christmas,\n", + "", + "无", + "Yes" + ] + }, + { + "id": 18, + "type": "ComfyUI_Mexx_Poster", + "pos": [ + 1466, + 348 + ], + "size": { + "0": 315, + "1": 342 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 23, + "label": "images" + } + ], + "properties": { + "Node name for S&R": "ComfyUI_Mexx_Poster" + }, + "widgets_values": [ + "ComfyUI", + 6, + 4, + "card" + ] + } + ], + "links": [ + [ + 1, + 4, + 0, + 3, + 0, + "MODEL" + ], + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 10, + 4, + 1, + 10, + 0, + "CLIP" + ], + [ + 12, + 11, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 13, + 4, + 1, + 11, + 0, + "CLIP" + ], + [ + 14, + 10, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 15, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 16, + 12, + 0, + 10, + 1, + "STRING" + ], + [ + 17, + 12, + 0, + 10, + 2, + "STRING" + ], + [ + 18, + 12, + 1, + 11, + 1, + "STRING" + ], + [ + 19, + 12, + 1, + 11, + 2, + "STRING" + ], + [ + 23, + 8, + 0, + 18, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file