Skip to content

Error when using Reactor Face Swap Node #52

@radiantraptor

Description

@radiantraptor

In a workflow with the Reactor Fast Face Swap node there is an error in every image generation:
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f30c' in position 453: ordinal not in range(128).

Despite the error, in some cases an image is still saved in some cases, but not always.

Example Workflow:

{ "id": "99ee1b82-596d-4573-a7ed-ffc6f211076f", "revision": 0, "last_node_id": 152, "last_link_id": 248, "nodes": [ { "id": 119, "type": "ReActorFaceSwap", "pos": [ 230, 350 ], "size": [ 315, 358 ], "flags": { "pinned": true }, "order": 10, "mode": 0, "inputs": [ { "name": "input_image", "type": "IMAGE", "link": 242 }, { "name": "source_image", "shape": 7, "type": "IMAGE", "link": 241 }, { "name": "face_model", "shape": 7, "type": "FACE_MODEL", "link": null }, { "name": "face_boost", "shape": 7, "type": "FACE_BOOST", "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 244 ] }, { "name": "FACE_MODEL", "type": "FACE_MODEL", "slot_index": 1, "links": null } ], "properties": { "aux_id": "Gourieff/comfyui-reactor", "ver": "d901609a1d5d1942a6b069b2f8f3778fee3a7134", "Node name for S&R": "ReActorFaceSwap" }, "widgets_values": [ true, "inswapper_128.onnx", "YOLOv5l", "codeformer.pth", 1, 1, "female", "no", "0", "0", 1 ] }, { "id": 129, "type": "MaskToSEGS", "pos": [ 1230, 360 ], "size": [ 315, 154 ], "flags": { "pinned": true }, "order": 20, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 211 } ], "outputs": [ { "name": "SEGS", "type": "SEGS", "slot_index": 0, "links": [ 190 ] } ], "properties": { "aux_id": "ltdrdata/ComfyUI-Impact-Pack", "ver": "0b1ac0f1c5a395e17065821e4fd47aba3bf23900", "Node name for S&R": "MaskToSEGS" }, "widgets_values": [ false, 3, false, 10, false ] }, { "id": 130, "type": "DetailerForEach", "pos": [ 1690, 340 ], "size": [ 400, 680 ], "flags": { "pinned": true }, "order": 21, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 205 }, { "name": "segs", "type": "SEGS", "link": 190 }, { "name": "model", "type": "MODEL", "link": 246 }, { "name": "clip", "type": "CLIP", "link": 248 }, { "name": "vae", "type": "VAE", "link": 219 }, { "name": "positive", "type": "CONDITIONING", "link": 191 }, { "name": "negative", "type": "CONDITIONING", "link": 192 }, { "name": "detailer_hook", "shape": 7, "type": "DETAILER_HOOK", "link": null }, { "name": "scheduler_func_opt", "shape": 7, "type": "SCHEDULER_FUNC", "link": null } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 197, 235 ] } ], "properties": { "aux_id": "ltdrdata/ComfyUI-Impact-Pack", "ver": "0b1ac0f1c5a395e17065821e4fd47aba3bf23900", "Node name for S&R": "DetailerForEach" }, "widgets_values": [ 384, true, 1024, 791025694003376, "randomize", 30, 7, "dpmpp_2m", "karras", 0.25000000000000006, 4, true, true, "", 1, false, 4, false, false ] }, { "id": 95, "type": "SaveMetaData", "pos": [ 2220, 340 ], "size": [ 315, 106 ], "flags": { "pinned": true }, "order": 23, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 235 } ], "outputs": [], "properties": { "aux_id": "bash-j/mikey_nodes", "ver": "99dca30a008e6385218342369a9f15eb4636f26f", "Node name for S&R": "SaveMetaData" }, "widgets_values": [ "face15swap_%date:yyyy-MM-dd_hh-mm-ss%_%DetailerForEach.seed%", "false", "true" ] }, { "id": 96, "type": "SaveImage", "pos": [ 2221, 491 ], "size": [ 312.80804443359375, 347.9479064941406 ], "flags": { "pinned": true }, "order": 22, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 197 } ], "outputs": [], "title": "Final Image", "properties": { "cnr_id": "comfy-core", "ver": "0.3.28" }, "widgets_values": [ "%date:yyyy-MM-dd%/%DetailerForEach.seed%" ], "color": "#232", "bgcolor": "#353" }, { "id": 142, "type": "Reroute", "pos": [ 1231, 525 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 5, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 245 } ], "outputs": [ { "name": "", "type": "MODEL", "slot_index": 0, "links": [ 223 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 138, "type": "Reroute", "pos": [ 1231, 563 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 7, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 247 } ], "outputs": [ { "name": "", "type": "CLIP", "slot_index": 0, "links": [ 213 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 140, "type": "Reroute", "pos": [ 1231, 604 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 8, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 215 } ], "outputs": [ { "name": "", "type": "VAE", "slot_index": 0, "links": [ 216 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 126, "type": "CLIPTextEncode", "pos": [ 1341, 676 ], "size": [ 400, 200 ], "flags": { "collapsed": true, "pinned": true }, "order": 12, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 221 }, { "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": 188 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 191 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.28", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ], "color": "#232", "bgcolor": "#353" }, { "id": 127, "type": "CLIPTextEncode", "pos": [ 1341, 718 ], "size": [ 400, 200 ], "flags": { "collapsed": true, "pinned": true }, "order": 13, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 222 }, { "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": 189 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "slot_index": 0, "links": [ 192 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.28", "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ], "color": "#322", "bgcolor": "#533" }, { "id": 133, "type": "Reroute", "pos": [ 1470, 293 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 19, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 204 } ], "outputs": [ { "name": "", "type": "IMAGE", "slot_index": 0, "links": [ 205 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 131, "type": "Reroute", "pos": [ 1472, 525 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 11, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 223 } ], "outputs": [ { "name": "", "type": "MODEL", "slot_index": 0, "links": [ 246 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 141, "type": "Reroute", "pos": [ 1472, 604 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 15, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 216 } ], "outputs": [ { "name": "", "type": "VAE", "slot_index": 0, "links": [ 219 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 139, "type": "Reroute", "pos": [ 1472, 563 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 14, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 213 } ], "outputs": [ { "name": "", "type": "CLIP", "slot_index": 0, "links": [ 248 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 143, "type": "Reroute", "pos": [ 1152, 689 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 6, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 220 } ], "outputs": [ { "name": "", "type": "CLIP", "slot_index": 0, "links": [ 221, 222 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 124, "type": "CheckpointLoaderSimple", "pos": [ 736, 507 ], "size": [ 315, 98 ], "flags": { "pinned": true }, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "slot_index": 0, "links": [ 245 ] }, { "name": "CLIP", "type": "CLIP", "slot_index": 1, "links": [ 220, 247 ] }, { "name": "VAE", "type": "VAE", "slot_index": 2, "links": [ 215 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.28", "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "dreamshaper_8.safetensors" ] }, { "id": 136, "type": "Reroute", "pos": [ 652, 360 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 18, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 209 } ], "outputs": [ { "name": "", "type": "MASK", "slot_index": 0, "links": [ 211 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 132, "type": "Reroute", "pos": [ 652, 293 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 17, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 244 } ], "outputs": [ { "name": "", "type": "IMAGE", "slot_index": 0, "links": [ 204 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 135, "type": "Reroute", "pos": [ 471, 283 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 16, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 208 } ], "outputs": [ { "name": "", "type": "MASK", "slot_index": 0, "links": [ 209 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 134, "type": "Reroute", "pos": [ 229, 283 ], "size": [ 75, 26 ], "flags": { "pinned": true }, "order": 9, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 240 } ], "outputs": [ { "name": "", "type": "MASK", "slot_index": 0, "links": [ 208 ] } ], "properties": { "showOutputText": false, "horizontal": false } }, { "id": 125, "type": "PrimitiveNode", "pos": [ 629, 815 ], "size": [ 421.35943603515625, 208.29942321777344 ], "flags": { "pinned": true }, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "widget": { "name": "text" }, "slot_index": 0, "links": [ 189 ] } ], "title": "NEGATIVE", "properties": { "Run widget replace on values": false }, "widgets_values": [ "" ], "color": "#322", "bgcolor": "#533" }, { "id": 151, "type": "LoadImage", "pos": [ -220, 350 ], "size": [ 315, 102 ], "flags": { "pinned": true }, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 242 ] }, { "name": "MASK", "type": "MASK", "links": [ 240 ] } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.30", "Node name for S&R": "LoadImage" }, "widgets_values": [ "00000-400644303734985.png", "image" ] }, { "id": 152, "type": "LoadImage", "pos": [ -222, 708 ], "size": [ 315, 102 ], "flags": { "pinned": true }, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 241 ] }, { "name": "MASK", "type": "MASK", "links": null } ], "properties": { "cnr_id": "comfy-core", "ver": "0.3.30", "Node name for S&R": "LoadImage" }, "widgets_values": [ "00000-400644303734985.png", "image" ] }, { "id": 128, "type": "PrimitiveNode", "pos": [ 628, 648 ], "size": [ 423.82421875, 126.18641662597656 ], "flags": { "pinned": true }, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "widget": { "name": "text" }, "slot_index": 0, "links": [ 188 ] } ], "title": "POSITIVE", "properties": { "Run widget replace on values": false }, "widgets_values": [ "" ], "color": "#232", "bgcolor": "#353" } ], "links": [ [ 188, 128, 0, 126, 1, "STRING" ], [ 189, 125, 0, 127, 1, "STRING" ], [ 190, 129, 0, 130, 1, "SEGS" ], [ 191, 126, 0, 130, 5, "CONDITIONING" ], [ 192, 127, 0, 130, 6, "CONDITIONING" ], [ 197, 130, 0, 96, 0, "IMAGE" ], [ 204, 132, 0, 133, 0, "*" ], [ 205, 133, 0, 130, 0, "IMAGE" ], [ 208, 134, 0, 135, 0, "*" ], [ 209, 135, 0, 136, 0, "*" ], [ 211, 136, 0, 129, 0, "MASK" ], [ 213, 138, 0, 139, 0, "*" ], [ 215, 124, 2, 140, 0, "*" ], [ 216, 140, 0, 141, 0, "*" ], [ 219, 141, 0, 130, 4, "VAE" ], [ 220, 124, 1, 143, 0, "*" ], [ 221, 143, 0, 126, 0, "CLIP" ], [ 222, 143, 0, 127, 0, "CLIP" ], [ 223, 142, 0, 131, 0, "*" ], [ 235, 130, 0, 95, 0, "IMAGE" ], [ 240, 151, 1, 134, 0, "*" ], [ 241, 152, 0, 119, 1, "IMAGE" ], [ 242, 151, 0, 119, 0, "IMAGE" ], [ 244, 119, 0, 132, 0, "*" ], [ 245, 124, 0, 142, 0, "*" ], [ 246, 131, 0, 130, 2, "MODEL" ], [ 247, 124, 1, 138, 0, "*" ], [ 248, 139, 0, 130, 3, "CLIP" ] ], "groups": [ { "id": 1, "title": "FACE-15-SWAP", "bounding": [ -299, 174, 2898, 907 ], "color": "#5bf1ff", "font_size": 24, "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 2.322515441988861, "offset": [ -576.2896411679076, -432.6055781084896 ] }, "frontendVersion": "1.19.9" }, "version": 0.4 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions