SCAIL-2 Int8: استبدال الشخصية
قم بتحريك شخصية مرجعية باستخدام فيديو مرجعي للحركة أو استبدل الشخصيات بالكامل باستخدام SCAIL-2 Int8، الذي يوفر جودة أعلى من fp8 مع تشغيل أسرع. يقبل سير...
داخل سير العمل
معاينة للقراءة فقط للقالب المصدر. افتحه في Cloud لاستكشاف العُقد وإجراء التغييرات.
Loading the graph
Open full-size workflow previewالملفات في سير العمل هذا
- المخرج
- فيديو
- المؤلف
- المؤلف غير متاح
استدعِ هذا النموذج من التعليمة البرمجية الخاصة بك
يستخدم الطلب أدناه المخطط والإعدادات المُعدّة نفسها كما في Playground. يمكن لكل إرسال أن يبدأ تشغيلًا مدفوعًا؛ لا تُعِد تلقائيًا محاولة إرسال لا تُعرف نتيجته.
What you need
- Runs on
- Comfy Cloud
- المفتاح
- COMFY_API_KEY
- ملفاتك
- تُرفع بواسطة التعليمة البرمجية من عناوين URL الخاصة بها
يتطلب خطة Cloud مدفوعة ورصيدًا.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"30": {
"class_type": "LoadImage",
"inputs": {
"image": "UPLOADED_image_FILENAME"
},
"_meta": {
"title": "Load Image"
}
},
"155": {
"class_type": "LoadVideo",
"inputs": {
"file": "UPLOADED_video_FILENAME"
},
"_meta": {
"title": "Load Video"
}
},
"201": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"215",
1
],
"bit_depth": 8,
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": [
"215",
2
],
"images": [
"213:6",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"202": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/ComfyUI",
"format": "auto",
"format.codec": "auto",
"video": [
"201",
0
]
},
"_meta": {
"title": "Save Video (First Segement)"
}
},
"215": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"155",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"263": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"215",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"264": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "ceil(a / (81 - 5))",
"values.a": [
"263",
2
]
},
"_meta": {
"title": "Math Expression"
}
},
"265": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"264",
1
]
},
"_meta": {
"title": "Preview as Text ()"
}
},
"269": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"213:6",
0
],
"images.image1": [
"262:252",
0
]
},
"_meta": {
"title": "Batch Images"
}
},
"270": {
"class_type": "CreateVideo",
"inputs": {
"audio": [
"215",
1
],
"bit_depth": 8,
"chroma_subsampling": "auto",
"codec": "none",
"color_space": "sRGB",
"fps": [
"215",
2
],
"images": [
"269",
0
]
},
"_meta": {
"title": "Create Video"
}
},
"271": {
"class_type": "SaveVideo",
"inputs": {
"filename_prefix": "video/SCAIL2",
"format": "auto",
"format.codec": "auto",
"video": [
"270",
0
]
},
"_meta": {
"title": "Save Video (Final output)"
}
},
"213:11": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
"model": [
"213:318",
0
],
"strength_model": 0.8
},
"_meta": {
"title": "Load LoRA"
}
},
"213:114": {
"class_type": "WanSCAILToVideo",
"inputs": {
"batch_size": 1,
"clip_vision_output": [
"213:76",
0
],
"height": [
"213:163",
1
],
"length": [
"213:163",
2
],
"negative": [
"213:4",
0
],
"pose_end": 1,
"pose_start": 0,
"pose_strength": 1,
"pose_video": [
"213:156",
0
],
"pose_video_mask": [
"213:197",
0
],
"positive": [
"213:3",
0
],
"previous_frame_count": 5,
"reference_image": [
"30",
0
],
"reference_image_mask": [
"213:197",
1
],
"replacement_mode": [
"213:203",
0
],
"vae": [
"213:7",
0
],
"video_frame_offset": 0,
"width": [
"213:163",
0
]
},
"_meta": {
"title": "WanSCAILToVideo"
}
},
"213:154": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"213:156": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"213:177",
0
],
"resize_type": "scale dimensions",
"resize_type.crop": "center",
"resize_type.height": [
"213:182",
1
],
"resize_type.width": [
"213:180",
1
],
"scale_method": "area"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"213:157": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"155",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"213:163": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"213:156",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"213:165": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 40
},
"_meta": {
"title": "Int (Steps)"
}
},
"213:166": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (CFG)"
}
},
"213:167": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "Float (CFG)"
}
},
"213:168": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 6
},
"_meta": {
"title": "Int (Steps)"
}
},
"213:169": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"213:318",
0
],
"on_true": [
"213:11",
0
],
"switch": [
"213:172",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"213:170": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"213:165",
0
],
"on_true": [
"213:168",
0
],
"switch": [
"213:172",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"213:171": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"213:166",
0
],
"on_true": [
"213:167",
0
],
"switch": [
"213:172",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"213:172": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Enable Distill LoRA?)"
}
},
"213:177": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": [
"213:184",
1
],
"image": [
"213:157",
0
],
"length": 81
},
"_meta": {
"title": "Get Image from Batch"
}
},
"213:178": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 896
},
"_meta": {
"title": "Int (Width)"
}
},
"213:179": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 512
},
"_meta": {
"title": "Int (Height)"
}
},
"213:18": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"213:11",
0
],
"scheduler": "simple",
"steps": [
"213:170",
0
]
},
"_meta": {
"title": "BasicScheduler"
}
},
"213:180": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(a // 32) * 32",
"values.a": [
"213:178",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"213:182": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(a // 32) * 32",
"values.a": [
"213:179",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"213:183": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 1
},
"_meta": {
"title": "Int (segment index)"
}
},
"213:184": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(b - c) * (a - 1)",
"values.a": [
"213:183",
0
],
"values.b": 81,
"values.c": 5
},
"_meta": {
"title": "Math Expression"
}
},
"213:19": {
"class_type": "SamplerCustom",
"inputs": {
"add_noise": True,
"cfg": [
"213:171",
0
],
"latent_image": [
"213:114",
2
],
"model": [
"213:95",
0
],
"negative": [
"213:114",
1
],
"noise_seed": 1,
"positive": [
"213:114",
0
],
"sampler": [
"213:27",
0
],
"sigmas": [
"213:18",
0
]
},
"_meta": {
"title": "SamplerCustom"
}
},
"213:191": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"213:193",
1
],
"text": "girl, handkerchief"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"213:193": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "sam3.1_multiplex_fp16.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"213:196": {
"class_type": "SAM3_VideoTrack",
"inputs": {
"conditioning": [
"213:191",
0
],
"detect_interval": 1,
"detection_threshold": 0.5,
"images": [
"213:156",
0
],
"max_objects": 4,
"model": [
"213:193",
0
]
},
"_meta": {
"title": "Run SAM3 Video Track"
}
},
"213:197": {
"class_type": "SCAIL2ColoredMask",
"inputs": {
"driving_track_data": [
"213:196",
0
],
"object_indices": "",
"ref_track_data": [
"213:198",
0
],
"replacement_mode": [
"213:203",
0
],
"sort_by": "left_to_right"
},
"_meta": {
"title": "Create SCAIL-2 Colored Mask"
}
},
"213:198": {
"class_type": "SAM3_VideoTrack",
"inputs": {
"conditioning": [
"213:212",
0
],
"detect_interval": 1,
"detection_threshold": 0.5,
"images": [
"30",
0
],
"max_objects": 4,
"model": [
"213:193",
0
]
},
"_meta": {
"title": "Run SAM3 Video Track"
}
},
"213:203": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Replace Mode)"
}
},
"213:212": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"213:193",
1
],
"text": "human"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"213:27": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"213:3": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"213:9",
0
],
"text": "A young East Asian woman with dark hair neatly pulled back, wearing a white sleeveless ribbed mock-neck top, is standing in a lush apple orchard. She holds a large glossy red apple with both hands, using a white paper handkerchief to wipe and clean the apple before smelling and eating it with her eyes closed and a blissful expression. Ripe red and yellow apples hang from leafy branches in the foreground, with rows of green apple trees softly blurred in the background under natural daylight."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"213:318": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
"model": [
"213:154",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"213:4": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"213:9",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"213:6": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"213:19",
1
],
"vae": [
"213:7",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"213:7": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "Wan2_1_VAE_bf16.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"213:75": {
"class_type": "CLIPVisionLoader",
"inputs": {
"clip_name": "clip_vision_h.safetensors"
},
"_meta": {
"title": "Load CLIP Vision"
}
},
"213:76": {
"class_type": "CLIPVisionEncode",
"inputs": {
"clip_vision": [
"213:75",
0
],
"crop": "none",
"image": [
"30",
0
]
},
"_meta": {
"title": "CLIP Vision Encode"
}
},
"213:9": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"213:95": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"213:169",
0
],
"shift": 5
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"262:216": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
"model": [
"262:319",
0
],
"strength_model": 0.8
},
"_meta": {
"title": "Load LoRA"
}
},
"262:217": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "Wan2_1_VAE_bf16.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"262:218": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"262:235",
0
],
"resize_type": "scale dimensions",
"resize_type.crop": "center",
"resize_type.height": [
"262:239",
1
],
"resize_type.width": [
"262:238",
1
],
"scale_method": "area"
},
"_meta": {
"title": "Resize Image/Mask"
}
},
"262:219": {
"class_type": "GetVideoComponents",
"inputs": {
"video": [
"155",
0
]
},
"_meta": {
"title": "Get Video Components"
}
},
"262:220": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"262:218",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"262:221": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"device": "default",
"type": "wan"
},
"_meta": {
"title": "Load CLIP"
}
},
"262:222": {
"class_type": "CLIPVisionLoader",
"inputs": {
"clip_name": "clip_vision_h.safetensors"
},
"_meta": {
"title": "Load CLIP Vision"
}
},
"262:223": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"262:224": {
"class_type": "ModelSamplingSD3",
"inputs": {
"model": [
"262:232",
0
],
"shift": 5
},
"_meta": {
"title": "ModelSamplingSD3"
}
},
"262:225": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"262:226": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"262:216",
0
],
"scheduler": "simple",
"steps": [
"262:233",
0
]
},
"_meta": {
"title": "BasicScheduler"
}
},
"262:227": {
"class_type": "SamplerCustom",
"inputs": {
"add_noise": True,
"cfg": [
"262:234",
0
],
"latent_image": [
"262:259",
2
],
"model": [
"262:224",
0
],
"negative": [
"262:259",
1
],
"noise_seed": 1,
"positive": [
"262:259",
0
],
"sampler": [
"262:225",
0
],
"sigmas": [
"262:226",
0
]
},
"_meta": {
"title": "SamplerCustom"
}
},
"262:228": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 6
},
"_meta": {
"title": "Int (Steps)"
}
},
"262:229": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 1
},
"_meta": {
"title": "Float (CFG)"
}
},
"262:230": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 40
},
"_meta": {
"title": "Int (Steps)"
}
},
"262:231": {
"class_type": "PrimitiveFloat",
"inputs": {
"value": 5
},
"_meta": {
"title": "Float (CFG)"
}
},
"262:232": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"262:319",
0
],
"on_true": [
"262:216",
0
],
"switch": [
"262:255",
0
]
},
"_meta": {
"title": "Switch (Model)"
}
},
"262:233": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"262:230",
0
],
"on_true": [
"262:228",
0
],
"switch": [
"262:255",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"262:234": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"262:231",
0
],
"on_true": [
"262:229",
0
],
"switch": [
"262:255",
0
]
},
"_meta": {
"title": "Switch (Steps)"
}
},
"262:235": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": [
"262:241",
1
],
"image": [
"262:219",
0
],
"length": 81
},
"_meta": {
"title": "Get Image from Batch"
}
},
"262:236": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 896
},
"_meta": {
"title": "Int (Width)"
}
},
"262:237": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 512
},
"_meta": {
"title": "Int (Height)"
}
},
"262:238": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(a // 32) * 32",
"values.a": [
"262:236",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"262:239": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(a // 32) * 32",
"values.a": [
"262:237",
0
]
},
"_meta": {
"title": "Math Expression"
}
},
"262:240": {
"class_type": "PrimitiveInt",
"inputs": {
"value": 2
},
"_meta": {
"title": "Int (segment index)"
}
},
"262:241": {
"class_type": "ComfyMathExpression",
"inputs": {
"expression": "(b - c) * (a - 1)",
"values.a": [
"262:240",
0
],
"values.b": 81,
"values.c": 5
},
"_meta": {
"title": "Math Expression"
}
},
"262:242": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"262:243",
1
],
"text": "girl, handkerchief"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"262:243": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "sam3.1_multiplex_fp16.safetensors"
},
"_meta": {
"title": "Load Checkpoint"
}
},
"262:244": {
"class_type": "SAM3_VideoTrack",
"inputs": {
"conditioning": [
"262:242",
0
],
"detect_interval": 1,
"detection_threshold": 0.5,
"images": [
"262:218",
0
],
"max_objects": 4,
"model": [
"262:243",
0
]
},
"_meta": {
"title": "Run SAM3 Video Track"
}
},
"262:245": {
"class_type": "SCAIL2ColoredMask",
"inputs": {
"driving_track_data": [
"262:244",
0
],
"object_indices": "",
"ref_track_data": [
"262:246",
0
],
"replacement_mode": [
"262:247",
0
],
"sort_by": "left_to_right"
},
"_meta": {
"title": "Create SCAIL-2 Colored Mask"
}
},
"262:246": {
"class_type": "SAM3_VideoTrack",
"inputs": {
"conditioning": [
"262:261",
0
],
"detect_interval": 1,
"detection_threshold": 0.5,
"images": [
"30",
0
],
"max_objects": 4,
"model": [
"262:243",
0
]
},
"_meta": {
"title": "Run SAM3 Video Track"
}
},
"262:247": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Replace Mode)"
}
},
"262:250": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"262:227",
1
],
"vae": [
"262:217",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"262:251": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": 5,
"image": [
"262:250",
0
],
"length": 4096
},
"_meta": {
"title": "Get Image from Batch"
}
},
"262:252": {
"class_type": "ColorTransfer",
"inputs": {
"image_ref": [
"262:253",
0
],
"image_target": [
"262:251",
0
],
"method": "reinhard_lab",
"source_stats": "per_frame",
"strength": 1
},
"_meta": {
"title": "Transfer Color"
}
},
"262:253": {
"class_type": "ImageFromBatch",
"inputs": {
"batch_index": -1,
"image": [
"213:6",
0
],
"length": 1
},
"_meta": {
"title": "Get Image from Batch"
}
},
"262:255": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": True
},
"_meta": {
"title": "Boolean (Enable Distill LoRA?)"
}
},
"262:256": {
"class_type": "CLIPVisionEncode",
"inputs": {
"clip_vision": [
"262:222",
0
],
"crop": "none",
"image": [
"30",
0
]
},
"_meta": {
"title": "CLIP Vision Encode"
}
},
"262:257": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"262:221",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"262:258": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"262:221",
0
],
"text": "A young East Asian woman with dark hair neatly pulled back, wearing a white sleeveless ribbed mock-neck top, is standing in a lush apple orchard. She holds a large glossy red apple with both hands, using a white paper handkerchief to wipe and clean the apple before smelling and eating it with her eyes closed and a blissful expression. Ripe red and yellow apples hang from leafy branches in the foreground, with rows of green apple trees softly blurred in the background under natural daylight."
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"262:259": {
"class_type": "WanSCAILToVideo",
"inputs": {
"batch_size": 1,
"clip_vision_output": [
"262:256",
0
],
"height": [
"262:220",
1
],
"length": [
"262:220",
2
],
"negative": [
"262:257",
0
],
"pose_end": 1,
"pose_start": 0,
"pose_strength": 1,
"pose_video": [
"262:218",
0
],
"pose_video_mask": [
"262:245",
0
],
"positive": [
"262:258",
0
],
"previous_frame_count": 5,
"previous_frames": [
"213:6",
0
],
"reference_image": [
"30",
0
],
"reference_image_mask": [
"262:245",
1
],
"replacement_mode": [
"262:247",
0
],
"vae": [
"262:217",
0
],
"video_frame_offset": 0,
"width": [
"262:220",
0
]
},
"_meta": {
"title": "WanSCAILToVideo"
}
},
"262:261": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"262:243",
1
],
"text": "human"
},
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"262:319": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
"model": [
"262:223",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
}
})
workflow.set_input("30", "image", client.assets.from_url("https://comfy.org/catalog-media/d74f9a44-98e2-45d0-b591-763a0bee32d3/225647e2-7d00-4b7d-960c-bb17a89a8b20"))
workflow.set_input("155", "file", client.assets.from_url("https://comfy.org/catalog-media/70b69920-5973-4b67-a290-613a003b0fbd/9d007f95-5451-485a-b6a9-00e4a0ad47f7"))
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)
for output in job.get_outputs("271"):
output.to_file(output.name)جرّب مثالًا
حول سير العمل هذا
SCAIL-2 drives a reference character with an existing performance: the video supplies pose, timing and framing, the reference image supplies the identity, and the model re-renders the person in place. It can also be used the other way round — same identity, new motion. The Int8 variant runs the same quality as fp8 at a lower cost.
Graph: LoadVideo (driving clip) + LoadImage (reference character) -> pose and SAM3 masking chain -> WanSCAILToVideo (width 896, height 512, pose_strength 1, replacement_mode) -> KSampler passes with a LoRA at 0.8 and 1.0 -> CreateVideo (source fps and audio) -> SaveVideo.
Runs on open weights (Wan 2.1 base + SCAIL-2 Int8 LoRA + SAM 3.1 for the mask), no partner API.
مهام سير عمل ذات صلة
- SSCAIL-2
Replace a character in a video
- LTX-2.3
Turn an image into a video
- LTX-2.3
Add camera motion first last frame
- Wan Animate
Copy movement from a video
- LTX-2.3
Make your character talk
- Wan2.1 InfiniteTalk
Make your character sing
- LTX-2.3
Animate a scene from a reference sheet
- Seedream, MiniMax
Turn a product photo into a video
- wan2.2 Animate
3.2 متقدم: التحكم في توليد الفيديو
- Seedance 2.0
4K Seedance 2.0 - مرجع إلى فيديو
- SSD1.5
AnimateDiff - رسوم متحركة متكررة IPAdapters
- MiniMax H3
Camera Control: MiniMax H3 Max