diff --git a/change_new_only_3090.json b/change_new_only_3090.json new file mode 100644 index 0000000..08c3760 --- /dev/null +++ b/change_new_only_3090.json @@ -0,0 +1,908 @@ +{ + "3": { + "inputs": { + "seed": 133974548609577, + "steps": 20, + "cfg": 1, + "sampler_name": "euler", + "scheduler": "simple", + "denoise": 1, + "model": [ + "13", + 0 + ], + "positive": [ + "17", + 0 + ], + "negative": [ + "17", + 1 + ], + "latent_image": [ + "17", + 2 + ] + }, + "class_type": "KSampler", + "_meta": { + "title": "KSampler" + } + }, + "6": { + "inputs": { + "text": "", + "clip": [ + "12", + 0 + ] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "7": { + "inputs": { + "text": "", + "clip": [ + "12", + 0 + ] + }, + "class_type": "CLIPTextEncode", + "_meta": { + "title": "CLIP Text Encode (Prompt)" + } + }, + "8": { + "inputs": { + "samples": [ + "3", + 0 + ], + "vae": [ + "16", + 0 + ] + }, + "class_type": "VAEDecode", + "_meta": { + "title": "VAE Decode" + } + }, + "10": { + "inputs": { + "strength": 1.0000000000000002, + "strength_type": "multiply", + "conditioning": [ + "11", + 0 + ], + "style_model": [ + "79", + 0 + ], + "clip_vision_output": [ + "20", + 0 + ] + }, + "class_type": "StyleModelApply", + "_meta": { + "title": "Apply Style Model" + } + }, + "11": { + "inputs": { + "guidance": 30, + "conditioning": [ + "6", + 0 + ] + }, + "class_type": "FluxGuidance", + "_meta": { + "title": "FluxGuidance" + } + }, + "12": { + "inputs": { + "clip_name1": "flux/t5xxl_fp16.safetensors", + "clip_name2": "clip_l.safetensors", + "type": "flux", + "device": "default" + }, + "class_type": "DualCLIPLoader", + "_meta": { + "title": "DualCLIPLoader" + } + }, + "13": { + "inputs": { + "model": [ + "75", + 0 + ] + }, + "class_type": "DifferentialDiffusion", + "_meta": { + "title": "Differential Diffusion" + } + }, + "16": { + "inputs": { + "vae_name": "ae.safetensors" + }, + "class_type": "VAELoader", + "_meta": { + "title": "Load VAE" + } + }, + "17": { + "inputs": { + "noise_mask": false, + "positive": [ + "10", + 0 + ], + "negative": [ + "7", + 0 + ], + "vae": [ + "16", + 0 + ], + "pixels": [ + "27", + 1 + ], + "mask": [ + "27", + 2 + ] + }, + "class_type": "InpaintModelConditioning", + "_meta": { + "title": "InpaintModelConditioning" + } + }, + "20": { + "inputs": { + "crop": "center", + "clip_vision": [ + "21", + 0 + ], + "image": [ + "25", + 0 + ] + }, + "class_type": "CLIPVisionEncode", + "_meta": { + "title": "CLIP Vision Encode" + } + }, + "21": { + "inputs": { + "clip_name": "sigclip_vision_patch14_384.safetensors" + }, + "class_type": "CLIPVisionLoader", + "_meta": { + "title": "Load CLIP Vision" + } + }, + "22": { + "inputs": { + "image": "man_cloth.jpg" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Load Image" + } + }, + "25": { + "inputs": { + "width": [ + "94", + 0 + ], + "height": [ + "94", + 0 + ], + "interpolation": "nearest", + "method": "keep proportion", + "condition": "always", + "multiple_of": 0, + "image": [ + "22", + 0 + ] + }, + "class_type": "ImageResize+", + "_meta": { + "title": "🔧 Image Resize" + } + }, + "26": { + "inputs": { + "width": [ + "94", + 0 + ], + "height": [ + "94", + 0 + ], + "interpolation": "nearest", + "method": "keep proportion", + "condition": "always", + "multiple_of": 0, + "image": [ + "61", + 0 + ] + }, + "class_type": "ImageResize+", + "_meta": { + "title": "🔧 Image Resize" + } + }, + "27": { + "inputs": { + "context_expand_pixels": 20, + "context_expand_factor": 1.0000000000000002, + "fill_mask_holes": true, + "blur_mask_pixels": 10, + "invert_mask": false, + "blend_pixels": 16, + "rescale_algorithm": "bicubic", + "mode": "ranged size", + "force_width": 1024, + "force_height": 1024, + "rescale_factor": 1.0000000000000002, + "min_width": 512, + "min_height": 512, + "max_width": 1800, + "max_height": 1800, + "padding": 32, + "image": [ + "42", + 0 + ], + "mask": [ + "30", + 0 + ], + "optional_context_mask": [ + "40", + 0 + ] + }, + "class_type": "InpaintCrop", + "_meta": { + "title": "(OLD 💀, use the new ✂️ Inpaint Crop node)" + } + }, + "28": { + "inputs": { + "mask": [ + "96", + 0 + ] + }, + "class_type": "MaskToImage", + "_meta": { + "title": "Convert Mask to Image" + } + }, + "29": { + "inputs": { + "width": [ + "94", + 0 + ], + "height": [ + "94", + 0 + ], + "interpolation": "nearest", + "method": "keep proportion", + "condition": "always", + "multiple_of": 0, + "image": [ + "28", + 0 + ] + }, + "class_type": "ImageResize+", + "_meta": { + "title": "🔧 Image Resize" + } + }, + "30": { + "inputs": { + "channel": "red", + "image": [ + "43", + 0 + ] + }, + "class_type": "ImageToMask", + "_meta": { + "title": "Convert Image to Mask" + } + }, + "34": { + "inputs": { + "rescale_algorithm": "bislerp", + "stitch": [ + "27", + 0 + ], + "inpainted_image": [ + "8", + 0 + ] + }, + "class_type": "InpaintStitch", + "_meta": { + "title": "(OLD 💀, use the new ✂️ Inpaint Stitch node)" + } + }, + "37": { + "inputs": { + "direction": "right", + "match_image_size": true, + "image1": [ + "38", + 0 + ], + "image2": [ + "57", + 0 + ] + }, + "class_type": "ImageConcanate", + "_meta": { + "title": "Image Concatenate" + } + }, + "38": { + "inputs": { + "mask": [ + "71:2", + 1 + ] + }, + "class_type": "MaskToImage", + "_meta": { + "title": "Convert Mask to Image" + } + }, + "40": { + "inputs": { + "channel": "red", + "image": [ + "37", + 0 + ] + }, + "class_type": "ImageToMask", + "_meta": { + "title": "Convert Image to Mask" + } + }, + "42": { + "inputs": { + "direction": "right", + "match_image_size": true, + "image1": [ + "25", + 0 + ], + "image2": [ + "26", + 0 + ] + }, + "class_type": "ImageConcanate", + "_meta": { + "title": "Image Concatenate" + } + }, + "43": { + "inputs": { + "direction": "right", + "match_image_size": true, + "image1": [ + "59", + 0 + ], + "image2": [ + "29", + 0 + ] + }, + "class_type": "ImageConcanate", + "_meta": { + "title": "Image Concatenate" + } + }, + "45": { + "inputs": { + "images": [ + "42", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "57": { + "inputs": { + "brightness": -1, + "contrast": 0, + "saturation": 0, + "sharpness": 0, + "blur": 0, + "gaussian_blur": 0, + "edge_enhance": 0, + "detail_enhance": "false", + "image": [ + "26", + 0 + ] + }, + "class_type": "Image Filter Adjustments", + "_meta": { + "title": "Image Filter Adjustments" + } + }, + "59": { + "inputs": { + "brightness": -1, + "contrast": 1.0000000000000002, + "saturation": 1.0000000000000002, + "sharpness": 1.0000000000000002, + "blur": 0, + "gaussian_blur": 48.1, + "edge_enhance": 0, + "detail_enhance": "false", + "image": [ + "25", + 0 + ] + }, + "class_type": "Image Filter Adjustments", + "_meta": { + "title": "Image Filter Adjustments" + } + }, + "61": { + "inputs": { + "image": "微信图片_20250808213937_73.png" + }, + "class_type": "LoadImage", + "_meta": { + "title": "Load Image" + } + }, + "75": { + "inputs": { + "model_path": "svdq-int4-flux.1-fill-dev", + "cache_threshold": 0, + "attention": "nunchaku-fp16", + "cpu_offload": "auto", + "device_id": 0, + "data_type": "bfloat16", + "i2f_mode": "enabled" + }, + "class_type": "NunchakuFluxDiTLoader", + "_meta": { + "title": "Nunchaku FLUX DiT Loader" + } + }, + "79": { + "inputs": { + "style_model_name": "flux1-redux-dev.safetensors" + }, + "class_type": "StyleModelLoader", + "_meta": { + "title": "Load Style Model" + } + }, + "83": { + "inputs": { + "images": [ + "29", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "84": { + "inputs": { + "images": [ + "43", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "85": { + "inputs": { + "mask": [ + "30", + 0 + ] + }, + "class_type": "MaskPreview", + "_meta": { + "title": "MaskPreview" + } + }, + "86": { + "inputs": { + "mask": [ + "71:2", + 1 + ] + }, + "class_type": "MaskPreview+", + "_meta": { + "title": "🔧 Mask Preview" + } + }, + "87": { + "inputs": { + "images": [ + "38", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "88": { + "inputs": { + "images": [ + "37", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "89": { + "inputs": { + "images": [ + "57", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "90": { + "inputs": { + "images": [ + "59", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "91": { + "inputs": { + "images": [ + "27", + 1 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "93": { + "inputs": { + "mask": [ + "27", + 2 + ] + }, + "class_type": "MaskPreview", + "_meta": { + "title": "MaskPreview" + } + }, + "94": { + "inputs": { + "value": 1536 + }, + "class_type": "PrimitiveInt", + "_meta": { + "title": "Int" + } + }, + "95": { + "inputs": { + "detect_hand": "disable", + "detect_body": "enable", + "detect_face": "disable", + "resolution": 512, + "bbox_detector": "yolo_nas_m_fp16.onnx", + "pose_estimator": "dw-ll_ucoco_384.onnx", + "scale_stick_for_xinsr_cn": "disable", + "image": [ + "61", + 0 + ] + }, + "class_type": "DWPreprocessor", + "_meta": { + "title": "DWPose Estimator" + } + }, + "96": { + "inputs": { + "cloth_len": "拖地", + "line_len": 0.4000000000000001, + "cloth_short": true, + "kps": [ + "95", + 1 + ] + }, + "class_type": "RenderPeopleKpsMask", + "_meta": { + "title": "My RenderPeopleKps Mask" + } + }, + "98": { + "inputs": { + "mask": [ + "96", + 0 + ] + }, + "class_type": "MaskPreview", + "_meta": { + "title": "MaskPreview" + } + }, + "99": { + "inputs": { + "width": [ + "108", + 0 + ], + "height": [ + "107", + 1 + ], + "x": [ + "109", + 0 + ], + "y": 0, + "image": [ + "34", + 0 + ] + }, + "class_type": "ImageCrop", + "_meta": { + "title": "Image Crop" + } + }, + "102": { + "inputs": { + "filename_prefix": "my_test_out", + "images": [ + "99", + 0 + ] + }, + "class_type": "SaveImage", + "_meta": { + "title": "Save Image" + } + }, + "104": { + "inputs": { + "image": [ + "61", + 0 + ] + }, + "class_type": "GetImageSize", + "_meta": { + "title": "Get Image Size" + } + }, + "106": { + "inputs": { + "op": "Mul", + "a": [ + "107", + 1 + ], + "b": [ + "104", + 0 + ] + }, + "class_type": "CM_IntBinaryOperation", + "_meta": { + "title": "IntBinaryOperation" + } + }, + "107": { + "inputs": { + "image": [ + "34", + 0 + ] + }, + "class_type": "GetImageSize", + "_meta": { + "title": "Get Image Size" + } + }, + "108": { + "inputs": { + "op": "Div", + "a": [ + "106", + 0 + ], + "b": [ + "104", + 1 + ] + }, + "class_type": "CM_IntBinaryOperation", + "_meta": { + "title": "IntBinaryOperation" + } + }, + "109": { + "inputs": { + "op": "Sub", + "a": [ + "107", + 0 + ], + "b": [ + "108", + 0 + ] + }, + "class_type": "CM_IntBinaryOperation", + "_meta": { + "title": "IntBinaryOperation" + } + }, + "119": { + "inputs": { + "anything": [ + "10", + 0 + ] + }, + "class_type": "easy cleanGpuUsed", + "_meta": { + "title": "Clean VRAM Used" + } + }, + "120": { + "inputs": { + "anything": [ + "10", + 0 + ] + }, + "class_type": "easy clearCacheAll", + "_meta": { + "title": "Clear Cache All" + } + }, + "124": { + "inputs": { + "images": [ + "95", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + }, + "128": { + "inputs": { + "mask": [ + "96", + 0 + ] + }, + "class_type": "MaskPreview", + "_meta": { + "title": "MaskPreview" + } + }, + "71:1": { + "inputs": { + "model_name": "GroundingDINO_SwinT_OGC (694MB)" + }, + "class_type": "GroundingDinoModelLoader (segment anything)", + "_meta": { + "title": "GroundingDinoModelLoader (segment anything)" + } + }, + "71:0": { + "inputs": { + "model_name": "sam_vit_h (2.56GB)" + }, + "class_type": "SAMModelLoader (segment anything)", + "_meta": { + "title": "SAMModelLoader (segment anything)" + } + }, + "71:2": { + "inputs": { + "prompt": "cloth", + "threshold": 0.30000000000000004, + "sam_model": [ + "71:0", + 0 + ], + "grounding_dino_model": [ + "71:1", + 0 + ], + "image": [ + "25", + 0 + ] + }, + "class_type": "GroundingDinoSAMSegment (segment anything)", + "_meta": { + "title": "GroundingDinoSAMSegment (segment anything)" + } + }, + "71:3": { + "inputs": { + "images": [ + "71:2", + 0 + ] + }, + "class_type": "PreviewImage", + "_meta": { + "title": "Preview Image" + } + } +} \ No newline at end of file diff --git a/static/index.html b/static/index.html index 76029db..b3619a5 100644 --- a/static/index.html +++ b/static/index.html @@ -171,7 +171,7 @@ console.log("准备发送的数据:", data); // 调试用 // 调用API - fetch('http://112.126.94.241:28888/change_cloth_base64', { + fetch('http://112.126.94.241:18888/change_cloth_base64', { method: 'POST', headers: { 'Content-Type': 'application/json' diff --git a/worker.py b/worker.py index 03c387f..d2fa691 100644 --- a/worker.py +++ b/worker.py @@ -316,8 +316,8 @@ if __name__ == '__main__': print(f"[Worker] Starting with PID: {os.getpid()}") redis_conn.set(GPU_SERVER_LIST, "[]") - # regServer("5090", "112.126.94.241:28888") - regServer("一号", "192.168.101.118:8888") + regServer("5090", "112.126.94.241:28888") + # regServer("一号", "192.168.101.118:8888") # regServer("二号", "192.168.101.221:8888") main_worker() \ No newline at end of file