V2.0 新增蒙版分离+提取功能

This commit is contained in:
ZHO-ZHO-ZHO
2024-02-24 16:33:51 +08:00
committed by GitHub
parent 21768e74ed
commit c4ce624864
2 changed files with 750 additions and 0 deletions
@@ -0,0 +1,319 @@
{
"last_node_id": 24,
"last_link_id": 29,
"nodes": [
{
"id": 4,
"type": "LoadImage",
"pos": [
600,
-120
],
"size": {
"0": 480,
"1": 420
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"u=1154228993,2450352963&fm=253&fmt=auto&app=138&f=JPEG.webp",
"image"
]
},
{
"id": 5,
"type": "PreviewImage",
"pos": [
1100,
-120
],
"size": {
"0": 590,
"1": 420
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 4
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 6,
"type": "MaskToImage",
"pos": [
600,
660
],
"size": {
"0": 260,
"1": 80
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 5,
"slot_index": 0
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
6
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 3,
"type": "ESAM_ModelLoader_Zho",
"pos": [
600,
510
],
"size": {
"0": 260,
"1": 100
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "esam_model",
"type": "ESAMMODEL",
"links": [
2
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "ESAM_ModelLoader_Zho"
},
"widgets_values": [
"CUDA"
]
},
{
"id": 1,
"type": "Yoloworld_ModelLoader_Zho",
"pos": [
600,
350
],
"size": {
"0": 260,
"1": 110
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "yolo_world_model",
"type": "YOLOWORLDMODEL",
"links": [
1
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Yoloworld_ModelLoader_Zho"
},
"widgets_values": [
"yolo_world/l"
]
},
{
"id": 7,
"type": "PreviewImage",
"pos": [
1190,
350
],
"size": {
"0": 500,
"1": 390
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 6
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 2,
"type": "Yoloworld_ESAM_Zho",
"pos": [
880,
350
],
"size": {
"0": 290,
"1": 390
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "yolo_world_model",
"type": "YOLOWORLDMODEL",
"link": 1
},
{
"name": "esam_model",
"type": "ESAMMODEL",
"link": 2,
"slot_index": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 3,
"slot_index": 2
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
4
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
5
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Yoloworld_ESAM_Zho"
},
"widgets_values": [
"glasses, bag, person, bicycle, car, motorcycle, bus, train, truck",
0.1,
0.1,
1,
1,
0.8,
true,
false,
true,
false,
false,
4
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"YOLOWORLDMODEL"
],
[
2,
3,
0,
2,
1,
"ESAMMODEL"
],
[
3,
4,
0,
2,
2,
"IMAGE"
],
[
4,
2,
0,
5,
0,
"IMAGE"
],
[
5,
2,
1,
6,
0,
"MASK"
],
[
6,
6,
0,
7,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}
@@ -0,0 +1,431 @@
{
"last_node_id": 27,
"last_link_id": 42,
"nodes": [
{
"id": 18,
"type": "VHS_VideoCombine",
"pos": [
950,
1610
],
"size": [
1340,
1046.5
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 25
},
{
"name": "audio",
"type": "VHS_AUDIO",
"link": null
},
{
"name": "batch_manager",
"type": "VHS_BatchManager",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 30,
"loop_count": 0,
"filename_prefix": "YWES",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "YWES_00010.mp4",
"subfolder": "",
"type": "output",
"format": "video/h264-mp4"
}
}
}
},
{
"id": 15,
"type": "VHS_LoadVideo",
"pos": [
660,
510
],
"size": [
270.17620849609375,
242
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "batch_manager",
"type": "VHS_BatchManager",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
40
],
"shape": 3,
"slot_index": 0
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "audio",
"type": "VHS_AUDIO",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": {
"video": "tokyo-walk.mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 90,
"skip_first_frames": 0,
"select_every_nth": 1,
"choose video to upload": "image",
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"frame_load_cap": 90,
"skip_first_frames": 0,
"force_rate": 0,
"select_every_nth": 1,
"filename": "tokyo-walk.mp4",
"type": "input",
"format": "video/mp4"
}
}
}
},
{
"id": 6,
"type": "MaskToImage",
"pos": [
660,
1170
],
"size": {
"0": 270,
"1": 30
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 42,
"slot_index": 0
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 14,
"type": "VHS_VideoCombine",
"pos": [
950,
510
],
"size": [
1340,
1046.5
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 41
},
{
"name": "audio",
"type": "VHS_AUDIO",
"link": null
},
{
"name": "batch_manager",
"type": "VHS_BatchManager",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 30,
"loop_count": 0,
"filename_prefix": "YWES",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "YWES_00009.mp4",
"subfolder": "",
"type": "output",
"format": "video/h264-mp4"
}
}
}
},
{
"id": 26,
"type": "ESAM_ModelLoader_Zho",
"pos": [
660,
1060
],
"size": {
"0": 270,
"1": 60
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "esam_model",
"type": "ESAMMODEL",
"links": [
38
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ESAM_ModelLoader_Zho"
},
"widgets_values": [
"CUDA"
]
},
{
"id": 25,
"type": "Yoloworld_ModelLoader_Zho",
"pos": [
660,
950
],
"size": {
"0": 270,
"1": 60
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "yolo_world_model",
"type": "YOLOWORLDMODEL",
"links": [
39
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Yoloworld_ModelLoader_Zho"
},
"widgets_values": [
"yolo_world/l"
]
},
{
"id": 27,
"type": "Yoloworld_ESAM_Zho",
"pos": [
660,
1250
],
"size": [
270,
400
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "yolo_world_model",
"type": "YOLOWORLDMODEL",
"link": 39
},
{
"name": "esam_model",
"type": "ESAMMODEL",
"link": 38
},
{
"name": "image",
"type": "IMAGE",
"link": 40,
"slot_index": 2
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
41
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
42
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Yoloworld_ESAM_Zho"
},
"widgets_values": [
"person, bicycle, car, motorcycle, airplane, bus, train, truck, boat",
0.1,
0.1,
2,
2,
1,
true,
false,
true,
true,
true,
0
]
}
],
"links": [
[
25,
6,
0,
18,
0,
"IMAGE"
],
[
38,
26,
0,
27,
1,
"ESAMMODEL"
],
[
39,
25,
0,
27,
0,
"YOLOWORLDMODEL"
],
[
40,
15,
0,
27,
2,
"IMAGE"
],
[
41,
27,
0,
14,
0,
"IMAGE"
],
[
42,
27,
1,
6,
0,
"MASK"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}