fix: route VR video workflows through file samplers

This commit is contained in:
gaclove
2026-10-23 01:33:35 +08:00
parent 61a7494e58
commit a9ee9e9c47
2 changed files with 109 additions and 321 deletions
+62 -91
View File
@@ -1,94 +1,65 @@
{
"1": {
"inputs": {
"video": "1954627330480766977_wan2-2.mp4",
"force_rate": 0,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"format": "AnimateDiff"
},
"class_type": "VHS_LoadVideo",
"_meta": {
"title": "Load Video (Upload) 🎥🅥🅗🅢"
}
"1": {
"inputs": {
"video": "飞书20260721-124954.mp4"
},
"4": {
"inputs": {
"ckpt_name": "seedvr2_ema_3b_fp8.safetensors",
"precision": "fp8-sgl",
"cpu_offload": false,
"use_tiling_vae": true
},
"class_type": "LightX2VSeedVR2Loader",
"_meta": {
"title": "LightX2V SeedVR2 Loader"
}
},
"5": {
"inputs": {
"target_height": 1920,
"target_width": 1080,
"infer_steps": 1,
"segment_length": 81,
"segment_overlap": 1,
"seed": 3816942657,
"source_fps": 16,
"model": [
"4",
0
],
"images": [
"1",
0
]
},
"class_type": "LightX2VSeedVR2Sampler",
"_meta": {
"title": "LightX2V SeedVR2 Sampler"
}
},
"6": {
"inputs": {
"video_info": [
"1",
3
]
},
"class_type": "VHS_VideoInfo",
"_meta": {
"title": "Video Info 🎥🅥🅗🅢"
}
},
"7": {
"inputs": {
"frame_rate": [
"6",
0
],
"loop_count": 0,
"filename_prefix": "AnimateDiff",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": true,
"images": [
"5",
0
],
"audio": [
"1",
2
]
},
"class_type": "VHS_VideoCombine",
"_meta": {
"title": "Video Combine 🎥🅥🅗🅢"
}
"class_type": "LightX2VInputVideoPath",
"_meta": {
"title": "LightX2V Input Video Path (Upload)"
}
}
},
"2": {
"inputs": {
"ckpt_name": "seedvr2_ema_3b_fp8.safetensors",
"precision": "fp8-sgl",
"cpu_offload": false,
"use_tiling_vae": true,
"vae_tile_size": 1024,
"vae_tile_overlap": 64,
"vae_causal_slice_size": 4,
"vae_memory_limit_gb": 0.5
},
"class_type": "LightX2VSeedVR2Loader",
"_meta": {
"title": "LightX2V SeedVR2 Loader"
}
},
"3": {
"inputs": {
"model": [
"2",
0
],
"video_path": [
"1",
0
],
"target_width": 1080,
"target_height": 1920,
"infer_steps": 1,
"segment_length": 81,
"segment_overlap": 1,
"seed": 3816942657,
"filename_prefix": "lightx2v_seedvr2/SeedVR2",
"color_fix": "gpu"
},
"class_type": "LightX2VSeedVR2FileSampler",
"_meta": {
"title": "LightX2V SeedVR2 File Sampler"
}
},
"4": {
"inputs": {
"filename": [
"3",
0
],
"validate_exists": true,
"mux_audio": false
},
"class_type": "LightX2VOutputVideoPreview",
"_meta": {
"title": "LightX2V Output Video Preview"
}
}
}
+47 -230
View File
@@ -1,8 +1,8 @@
{
"id": "2ac26f51-8427-4fd5-a63b-8c0c35716909",
"revision": 0,
"last_node_id": 6,
"last_link_id": 10,
"last_node_id": 5,
"last_link_id": 11,
"nodes": [
{
"id": 2,
@@ -41,19 +41,50 @@
false
]
},
{
"id": 5,
"type": "LightX2VInputVideoPath",
"pos": [
-554.2465629475984,
172.59098534531842
],
"size": [
280,
120
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "video_path",
"type": "STRING",
"links": [
11
]
}
],
"properties": {
"Node name for S&R": "LightX2VInputVideoPath"
},
"widgets_values": [
"飞书20260721-124954.mp4"
]
},
{
"id": 3,
"type": "LightX2VSwiftVRSampler",
"type": "LightX2VSwiftVRFileSampler",
"pos": [
410.84880341840596,
119.34257282956952
],
"size": [
337.3125,
320
280
],
"flags": {},
"order": 3,
"order": 2,
"mode": 0,
"inputs": [
{
@@ -62,25 +93,12 @@
"link": 4
},
{
"name": "images",
"type": "IMAGE",
"link": 7
},
{
"name": "source_fps",
"type": "FLOAT",
"widget": {
"name": "source_fps"
},
"link": 9
"name": "video_path",
"type": "STRING",
"link": 11
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": null
},
{
"name": "filename",
"type": "STRING",
@@ -90,12 +108,10 @@
}
],
"properties": {
"Node name for S&R": "LightX2VSwiftVRSampler"
"Node name for S&R": "LightX2VSwiftVRFileSampler"
},
"widgets_values": [
1080,
16,
true,
"lightx2v_swiftvr_api/SwiftVR",
"libx265",
60,
@@ -114,19 +130,13 @@
703.328125
],
"flags": {},
"order": 4,
"order": 3,
"mode": 0,
"inputs": [
{
"name": "filename",
"type": "STRING",
"link": 6
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": 10
}
],
"outputs": [
@@ -141,173 +151,8 @@
},
"widgets_values": [
true,
true
false
]
},
{
"id": 5,
"type": "VHS_LoadVideo",
"pos": [
-554.2465629475984,
172.59098534531842
],
"size": [
260.421875,
761.6875
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7
]
},
{
"name": "frame_count",
"type": "INT",
"links": null
},
{
"name": "audio",
"type": "AUDIO",
"links": [
10
]
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": [
8
]
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "飞书20260721-124954.mp4",
"force_rate": 0,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"format": "AnimateDiff",
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "飞书20260721-124954.mp4",
"type": "input",
"format": "video/mp4",
"force_rate": 0,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1
}
}
}
},
{
"id": 6,
"type": "VHS_VideoInfo",
"pos": [
-245.90446161258,
309.43756146966683
],
"size": [
233.453125,
288
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"link": 8
}
],
"outputs": [
{
"name": "source_fps🟨",
"type": "FLOAT",
"links": [
9
]
},
{
"name": "source_frame_count🟨",
"type": "INT",
"links": null
},
{
"name": "source_duration🟨",
"type": "FLOAT",
"links": null
},
{
"name": "source_width🟨",
"type": "INT",
"links": null
},
{
"name": "source_height🟨",
"type": "INT",
"links": null
},
{
"name": "loaded_fps🟦",
"type": "FLOAT",
"links": null
},
{
"name": "loaded_frame_count🟦",
"type": "INT",
"links": null
},
{
"name": "loaded_duration🟦",
"type": "FLOAT",
"links": null
},
{
"name": "loaded_width🟦",
"type": "INT",
"links": null
},
{
"name": "loaded_height🟦",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "VHS_VideoInfo"
},
"widgets_values": {}
}
],
"links": [
@@ -322,42 +167,18 @@
[
6,
3,
1,
0,
4,
0,
"STRING"
],
[
7,
11,
5,
0,
3,
1,
"IMAGE"
],
[
8,
5,
3,
6,
0,
"VHS_VIDEOINFO"
],
[
9,
6,
0,
3,
2,
"FLOAT"
],
[
10,
5,
2,
4,
1,
"AUDIO"
"STRING"
]
],
"groups": [],
@@ -370,11 +191,7 @@
389.36680475087843
]
},
"frontendVersion": "1.45.15",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
"frontendVersion": "1.45.15"
},
"version": 0.4
}
}