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": {
|
| 4 |
+
"model_name": "sam_hq_vit_h (2.57GB)"
|
| 5 |
+
},
|
| 6 |
+
"class_type": "SAMModelLoader (segment anything)",
|
| 7 |
+
"_meta": {
|
| 8 |
+
"title": "SAMModelLoader (segment anything)"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
"2": {
|
| 12 |
+
"inputs": {
|
| 13 |
+
"model_name": "GroundingDINO_SwinB (938MB)"
|
| 14 |
+
},
|
| 15 |
+
"class_type": "GroundingDinoModelLoader (segment anything)",
|
| 16 |
+
"_meta": {
|
| 17 |
+
"title": "GroundingDinoModelLoader (segment anything)"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"3": {
|
| 21 |
+
"inputs": {
|
| 22 |
+
"prompt": "t-shirt",
|
| 23 |
+
"threshold": 0.5,
|
| 24 |
+
"sam_model": [
|
| 25 |
+
"1",
|
| 26 |
+
0
|
| 27 |
+
],
|
| 28 |
+
"grounding_dino_model": [
|
| 29 |
+
"2",
|
| 30 |
+
0
|
| 31 |
+
],
|
| 32 |
+
"image": [
|
| 33 |
+
"4",
|
| 34 |
+
0
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
"class_type": "GroundingDinoSAMSegment (segment anything)",
|
| 38 |
+
"_meta": {
|
| 39 |
+
"title": "GroundingDinoSAMSegment (segment anything)"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"4": {
|
| 43 |
+
"inputs": {
|
| 44 |
+
"image": "00079-2293829935.png",
|
| 45 |
+
"upload": "image"
|
| 46 |
+
},
|
| 47 |
+
"class_type": "LoadImage",
|
| 48 |
+
"_meta": {
|
| 49 |
+
"title": "Load Image"
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
"5": {
|
| 53 |
+
"inputs": {
|
| 54 |
+
"model": "densepose_r50_fpn_dl.torchscript",
|
| 55 |
+
"cmap": "Parula (CivitAI)",
|
| 56 |
+
"resolution": 832,
|
| 57 |
+
"image": [
|
| 58 |
+
"4",
|
| 59 |
+
0
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
"class_type": "DensePosePreprocessor",
|
| 63 |
+
"_meta": {
|
| 64 |
+
"title": "DensePose Estimator"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"6": {
|
| 68 |
+
"inputs": {
|
| 69 |
+
"image": "awrwS6PNov44MbWO.webp",
|
| 70 |
+
"upload": "image"
|
| 71 |
+
},
|
| 72 |
+
"class_type": "LoadImage",
|
| 73 |
+
"_meta": {
|
| 74 |
+
"title": "Load Image"
|
| 75 |
+
}
|
| 76 |
+
},
|
| 77 |
+
"9": {
|
| 78 |
+
"inputs": {
|
| 79 |
+
"mask": [
|
| 80 |
+
"3",
|
| 81 |
+
1
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
"class_type": "MaskToImage",
|
| 85 |
+
"_meta": {
|
| 86 |
+
"title": "Convert Mask to Image"
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
"10": {
|
| 90 |
+
"inputs": {
|
| 91 |
+
"images": [
|
| 92 |
+
"13",
|
| 93 |
+
0
|
| 94 |
+
]
|
| 95 |
+
},
|
| 96 |
+
"class_type": "PreviewImage",
|
| 97 |
+
"_meta": {
|
| 98 |
+
"title": "Preview Image"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"13": {
|
| 102 |
+
"inputs": {
|
| 103 |
+
"garment_description": "model is wearing a tee-shirt",
|
| 104 |
+
"negative_prompt": "nsfw, naked, nudity, worst quality, low quality, poor quality, normal quality, depth of field, jpeg artefacts, jpeg, compression artefacts, chromatic aberration, diffusion, diffraction, distortion, noise, gaussian, blurry, cropped",
|
| 105 |
+
"width": 832,
|
| 106 |
+
"height": 1216,
|
| 107 |
+
"num_inference_steps": 30,
|
| 108 |
+
"guidance_scale": 2,
|
| 109 |
+
"strength": 1,
|
| 110 |
+
"seed": 615869150627749,
|
| 111 |
+
"pipeline": [
|
| 112 |
+
"15",
|
| 113 |
+
0
|
| 114 |
+
],
|
| 115 |
+
"human_img": [
|
| 116 |
+
"4",
|
| 117 |
+
0
|
| 118 |
+
],
|
| 119 |
+
"pose_img": [
|
| 120 |
+
"5",
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
"mask_img": [
|
| 124 |
+
"9",
|
| 125 |
+
0
|
| 126 |
+
],
|
| 127 |
+
"garment_img": [
|
| 128 |
+
"6",
|
| 129 |
+
0
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"class_type": "IDM-VTON",
|
| 133 |
+
"_meta": {
|
| 134 |
+
"title": "Run IDM-VTON Inference"
|
| 135 |
+
}
|
| 136 |
+
},
|
| 137 |
+
"15": {
|
| 138 |
+
"inputs": {
|
| 139 |
+
"ckpt_path": "yisol/IDM-VTON",
|
| 140 |
+
"weight_dtype": "float16"
|
| 141 |
+
},
|
| 142 |
+
"class_type": "PipelineLoader",
|
| 143 |
+
"_meta": {
|
| 144 |
+
"title": "Load IDM-VTON Pipeline"
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
}
|