add load local model way

This commit is contained in:
yueliang
2024-09-21 18:11:58 +08:00
parent 37a20e516c
commit 06b00c6135
9 changed files with 354 additions and 477 deletions
+160 -155
View File
@@ -3,20 +3,32 @@
"last_link_id": 16,
"nodes": [
{
"id": 11,
"type": "VHS_LoadVideo",
"pos": [
840,
-90
],
"id": 13,
"type": "VHS_VideoCombine",
"pos": {
"0": 1830,
"1": -180
},
"size": [
210,
480
360,
928.4444444444445
],
"flags": {},
"order": 0,
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 14,
"label": "图像"
},
{
"name": "audio",
"type": "AUDIO",
"link": null,
"label": "音频"
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
@@ -31,122 +43,47 @@
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
12
],
"shape": 3,
"label": "图像",
"slot_index": 0
},
{
"name": "frame_count",
"type": "INT",
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null,
"shape": 3,
"label": "帧计数"
},
{
"name": "audio",
"type": "AUDIO",
"links": null,
"shape": 3,
"label": "音频"
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null,
"shape": 3,
"label": "视频信息"
"label": "文件名"
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"video": "6月28日(1).mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"choose video to upload": "image",
"frame_rate": 30,
"loop_count": 0,
"filename_prefix": "AnimateDiff",
"format": "video/h265-mp4",
"pix_fmt": "yuv420p10le",
"crf": 22,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"frame_load_cap": 0,
"skip_first_frames": 0,
"force_rate": 0,
"filename": "6月28日(1).mp4",
"type": "input",
"format": "video/mp4",
"select_every_nth": 1
"filename": "AnimateDiff_00004.mp4",
"subfolder": "",
"type": "output",
"format": "video/h265-mp4",
"frame_rate": 30
},
"muted": false
}
}
},
{
"id": 1,
"type": "BiRefNet_Hugo",
"pos": [
1110,
-60
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 12,
"slot_index": 0,
"label": "image"
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
14
],
"slot_index": 0,
"shape": 3,
"label": "image"
},
{
"name": "mask",
"type": "MASK",
"links": [
15
],
"slot_index": 1,
"shape": 3,
"label": "mask"
}
],
"properties": {
"Node name for S&R": "BiRefNet_Hugo"
}
},
{
"id": 14,
"type": "MaskToImage",
"pos": [
1410,
30
],
"pos": {
"0": 1466,
"1": 93
},
"size": {
"0": 210,
"1": 30
@@ -169,9 +106,9 @@
"links": [
16
],
"slot_index": 0,
"shape": 3,
"label": "图像",
"slot_index": 0
"label": "图像"
}
],
"properties": {
@@ -181,13 +118,13 @@
{
"id": 15,
"type": "VHS_VideoCombine",
"pos": [
1410,
120
],
"pos": {
"0": 1409,
"1": 210
},
"size": [
360,
660
928.4444444444445
],
"flags": {},
"order": 4,
@@ -254,32 +191,20 @@
}
},
{
"id": 13,
"type": "VHS_VideoCombine",
"pos": [
1830,
-180
],
"id": 11,
"type": "VHS_LoadVideo",
"pos": {
"0": 826,
"1": -90
},
"size": [
360,
660
210,
466
],
"flags": {},
"order": 2,
"order": 0,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 14,
"label": "图像"
},
{
"name": "audio",
"type": "AUDIO",
"link": null,
"label": "音频"
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
@@ -294,39 +219,119 @@
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"name": "IMAGE",
"type": "IMAGE",
"links": [
12
],
"slot_index": 0,
"shape": 3,
"label": "图像"
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3,
"label": "文件名"
"label": "帧计数"
},
{
"name": "audio",
"type": "AUDIO",
"links": null,
"shape": 3,
"label": "音频"
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null,
"shape": 3,
"label": "视频信息"
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"frame_rate": 30,
"loop_count": 0,
"filename_prefix": "AnimateDiff",
"format": "video/h265-mp4",
"pix_fmt": "yuv420p10le",
"crf": 22,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"video": "6月28日(1).mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "AnimateDiff_00004.mp4",
"subfolder": "",
"type": "output",
"format": "video/h265-mp4",
"frame_rate": 30
"frame_load_cap": 0,
"skip_first_frames": 0,
"force_rate": 0,
"filename": "6月28日(1).mp4",
"type": "input",
"format": "video/mp4",
"select_every_nth": 1
},
"muted": false
}
}
},
{
"id": 1,
"type": "BiRefNet_Hugo",
"pos": {
"0": 1076,
"1": -81
},
"size": {
"0": 319.6482238769531,
"1": 154.82546997070312
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 12,
"slot_index": 0,
"label": "图像"
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
14
],
"slot_index": 0,
"shape": 3,
"label": "图像"
},
{
"name": "mask",
"type": "MASK",
"links": [
15
],
"slot_index": 1,
"shape": 3,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "BiRefNet_Hugo"
},
"widgets_values": [
false,
"transparency",
"auto"
]
}
],
"links": [
@@ -367,10 +372,10 @@
"config": {},
"extra": {
"ds": {
"scale": 0.8390545288824037,
"scale": 1.6105100000000008,
"offset": [
-471.7394319558889,
296.200180526101
-674.0647486185928,
271.0286531806558
]
}
},
+158 -150
View File
@@ -2,159 +2,21 @@
"last_node_id": 5,
"last_link_id": 4,
"nodes": [
{
"id": 1,
"type": "BiRefNet_Hugo",
"pos": [
921,
256
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 1,
"label": "image",
"slot_index": 0
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
2
],
"shape": 3,
"label": "image",
"slot_index": 0
},
{
"name": "mask",
"type": "MASK",
"links": [
3
],
"shape": 3,
"label": "mask",
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "BiRefNet_Hugo"
}
},
{
"id": 4,
"type": "MaskToImage",
"pos": [
922,
352
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 3,
"label": "遮罩"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
4
],
"shape": 3,
"label": "图像",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1299,
410
],
"size": [
210,
246
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 4,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 3,
"type": "PreviewImage",
"pos": [
1295,
74
],
"size": [
210,
246
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 2,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 2,
"type": "LoadImage",
"pos": [
561,
254
],
"size": [
315,
314
],
"pos": {
"0": 561,
"1": 254
},
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
@@ -180,6 +42,152 @@
"image.webp",
"image"
]
},
{
"id": 3,
"type": "PreviewImage",
"pos": {
"0": 1312,
"1": 140
},
"size": [
410.6826949448018,
214.56675819839558
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 2,
"label": "图像"
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 4,
"type": "MaskToImage",
"pos": {
"0": 933,
"1": 473
},
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 3,
"label": "遮罩"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
4
],
"slot_index": 0,
"shape": 3,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 1,
"type": "BiRefNet_Hugo",
"pos": {
"0": 921,
"1": 256
},
"size": [
315.4826217026143,
143.56669716323933
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 1,
"slot_index": 0,
"label": "图像"
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
2
],
"slot_index": 0,
"shape": 3,
"label": "图像"
},
{
"name": "mask",
"type": "MASK",
"links": [
3
],
"slot_index": 1,
"shape": 3,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "BiRefNet_Hugo"
},
"widgets_values": [
false,
"transparency",
"auto"
]
},
{
"id": 5,
"type": "PreviewImage",
"pos": {
"0": 1316,
"1": 425
},
"size": [
430.8826461166768,
261.3667765089424
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 4,
"label": "图像"
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
@@ -220,10 +228,10 @@
"config": {},
"extra": {
"ds": {
"scale": 1.2100000000000002,
"scale": 1,
"offset": [
-299.9616678351899,
94.8424540865177
-172.4824996323017,
67.43331809554974
]
}
},