espressotechie/ai-hst-vg 🔢🖼️❓ → 🖼️

▶️ 403 runs 📅 Jul 2025 ⚙️ Cog 0.16.8
hairstyle-transfer image-editing image-to-image

About

Hair swap

Example Output

Output

Example output

Performance Metrics

143.65s Prediction Time
205.91s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/NyXIhIJNlEYEWFV0sfVeqeJkX7cDZy20ty3y5q548uvq9UUQ/woman-512.jpg",
  "image_ref": "https://replicate.delivery/pbxt/NyXIiEXSL1vXBVfLV7FY3TFnxJOxMvZuaYGFCVbJNgKi6eVl/woman-1439909_640.jpg",
  "output_format": "webp",
  "output_quality": 95
}
Input Parameters
seed Type: integer
Seed for reproducibility (leave blank for random)
image Type: string
An input image with hair showing
image_ref Type: string
An ref image with hair showing
output_format Default: webp
Format of the output images
output_quality Type: integerDefault: 95Range: 0 - 100
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
[ComfyUI] Global interrupt (no prompt_id specified)
Seed set to: 1346445893
Checking inputs
✅ /tmp/inputs/image.jpg
✅ /tmp/inputs/image_ref.jpg
====================================
Checking weights
✅ exists
====================================
Running workflow
[ComfyUI] got prompt
Executing node 391, title: Load Checkpoint, class type: CheckpointLoaderSimple
[ComfyUI] model weight dtype torch.bfloat16, manual cast: None
[ComfyUI] model_type FLUX
[ComfyUI] Using pytorch attention in VAE
[ComfyUI] Using pytorch attention in VAE
[ComfyUI] VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
[ComfyUI] Using scaled fp8: fp8 matrix mult: False, scale input: False
[ComfyUI] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
Executing node 106, title: Load Image, class type: LoadImage
Executing node 435, title: Scale Image to Total Pixels, class type: ImageScaleToTotalPixels
[ComfyUI] 2025-10-30 15:35:35.339442757 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1267, index: 0, mask: {1, 65, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339453694 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1268, index: 1, mask: {2, 66, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339483423 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1269, index: 2, mask: {3, 67, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339515431 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1270, index: 3, mask: {4, 68, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339548685 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1271, index: 4, mask: {5, 69, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339694728 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1272, index: 5, mask: {6, 70, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339722735 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1273, index: 6, mask: {7, 71, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.339731258 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1274, index: 7, mask: {8, 72, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.340508708 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1276, index: 9, mask: {10, 74, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.340751861 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1287, index: 20, mask: {21, 85, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.348929781 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1299, index: 32, mask: {33, 97, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.351314398 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1318, index: 51, mask: {52, 116, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.347335212 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1317, index: 50, mask: {51, 115, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.353965578 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1308, index: 41, mask: {42, 106, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.347316749 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1300, index: 33, mask: {34, 98, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.351334566 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1319, index: 52, mask: {53, 117, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.351361884 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1327, index: 60, mask: {61, 125, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.355309376 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1277, index: 10, mask: {11, 75, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.359023364 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1313, index: 46, mask: {47, 111, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.347366931 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1325, index: 58, mask: {59, 123, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.359288086 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1326, index: 59, mask: {60, 124, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.355275189 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1328, index: 61, mask: {62, 126, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.363401472 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1296, index: 29, mask: {30, 94, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.363553501 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1322, index: 55, mask: {56, 120, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.371296188 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1310, index: 43, mask: {44, 108, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.373097500 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1286, index: 19, mask: {20, 84, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.375290638 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1282, index: 15, mask: {16, 80, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.379268836 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1292, index: 25, mask: {26, 90, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.383266790 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1311, index: 44, mask: {45, 109, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.383286927 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1285, index: 18, mask: {19, 83, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.387280282 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1290, index: 23, mask: {24, 88, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.389346395 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1291, index: 24, mask: {25, 89, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.391322479 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1302, index: 35, mask: {36, 100, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.395267677 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1278, index: 11, mask: {12, 76, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.399341026 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1312, index: 45, mask: {46, 110, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.400125297 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1289, index: 22, mask: {23, 87, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.411264475 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1279, index: 12, mask: {13, 77, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.415349932 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1275, index: 8, mask: {9, 73, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426159037 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1298, index: 31, mask: {32, 96, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426168940 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1315, index: 48, mask: {49, 113, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426172211 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1314, index: 47, mask: {48, 112, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426179577 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1284, index: 17, mask: {18, 82, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426188697 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1323, index: 56, mask: {57, 121, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426192528 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1309, index: 42, mask: {43, 107, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426204334 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1316, index: 49, mask: {50, 114, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426209947 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1320, index: 53, mask: {54, 118, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426217956 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1293, index: 26, mask: {27, 91, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.426194136 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1297, index: 30, mask: {31, 95, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.431245184 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1329, index: 62, mask: {63, 127, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.431247347 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1280, index: 13, mask: {14, 78, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.431267918 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1281, index: 14, mask: {15, 79, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.435245865 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1294, index: 27, mask: {28, 92, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.435266651 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1283, index: 16, mask: {17, 81, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.431244891 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1295, index: 28, mask: {29, 93, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.443246227 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1321, index: 54, mask: {55, 119, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.443267904 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1324, index: 57, mask: {58, 122, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
[ComfyUI] 2025-10-30 15:35:35.443287786 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1288, index: 21, mask: {22, 86, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
Executing node 428, title: Body Part Segmentation (RMBG), class type: BodySegment
[ComfyUI] 2025-10-30 15:35:35.467281863 [E:onnxruntime:Default, env.cc:226 ThreadMain] pthread_setaffinity_np failed for thread: 1301, index: 34, mask: {35, 99, }, error code: 22 error msg: Invalid argument. Specify the number of threads explicitly so the affinity is not set.
Executing node 430, title: Crop To Object (RMBG) 🖼️🎭, class type: AILab_CropObject
Executing node 429, title: Preview Image, class type: PreviewImage
Executing node 112, title: EmptySD3LatentImage, class type: EmptySD3LatentImage
Executing node 78, title: Load Image, class type: LoadImage
Executing node 111, title: TextEncodeQwenImageEditPlus, class type: TextEncodeQwenImageEditPlus
[ComfyUI] Requested to load WanVAE
[ComfyUI] loaded completely 73875.90625 242.02829551696777 True
[ComfyUI] Requested to load QwenImageTEModel_
[ComfyUI] loaded completely 79163.70920448304 7909.737449645996 True
Executing node 415, title: ConditioningZeroOut, class type: ConditioningZeroOut
Executing node 3, title: KSampler, class type: KSampler
[ComfyUI] Requested to load QwenImage
[ComfyUI] loaded completely 71237.84673957825 38967.89758300781 True
[ComfyUI] [ComfyUI-RMBG] v2.9.0 | 32 nodes Loaded
[ComfyUI]
[ComfyUI] 0%|          | 0/2 [00:00<?, ?it/s]
[ComfyUI] 50%|█████     | 1/2 [00:00<00:00,  1.04it/s]
[ComfyUI] 100%|██████████| 2/2 [00:01<00:00,  1.39it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 416, title: Preview Image, class type: PreviewImage
Executing node 407, title: TextEncodeQwenImageEditPlus, class type: TextEncodeQwenImageEditPlus
Executing node 413, title: ConditioningZeroOut, class type: ConditioningZeroOut
Executing node 411, title: KSampler, class type: KSampler
[ComfyUI] 100%|██████████| 2/2 [00:01<00:00,  1.32it/s]
[ComfyUI]
[ComfyUI] 0%|          | 0/2 [00:00<?, ?it/s]
[ComfyUI] 50%|█████     | 1/2 [00:00<00:00,  1.12it/s]
[ComfyUI] 100%|██████████| 2/2 [00:01<00:00,  1.15it/s]
Executing node 410, title: VAE Decode, class type: VAEDecode
Executing node 412, title: Save Image, class type: SaveImage
[ComfyUI] 100%|██████████| 2/2 [00:01<00:00,  1.14it/s]
[ComfyUI] Prompt executed in 142.76 seconds
outputs:  {'429': {'images': [{'filename': 'ComfyUI_temp_peifz_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '412': {'images': [{'filename': 'GeneratedImg_00001_.png', 'subfolder': '', 'type': 'output'}]}, '416': {'images': [{'filename': 'ComfyUI_temp_skpus_00001_.png', 'subfolder': '', 'type': 'temp'}]}}
====================================
GeneratedImg_00001_.png
Version Details
Version ID
1988936131660224ac88e1f06233dee73367a302fe2f69c0b6b814115f61ca37
Version Created
October 30, 2025
Run on Replicate →