Purge VRAM between sequential H3 clips
This commit is contained in:
@@ -13,6 +13,14 @@ The workflow is preserved in `workflow-source.json`; `workflow.json` is the trac
|
||||
|
||||
For the visual ComfyUI editor, load [`workflow-ui.json`](workflow-ui.json). It is the canvas-format version of the same validated baseline, with node positions and links. The API-format `workflow.json` remains the file used by the automated submission scripts.
|
||||
|
||||
After `CSGlideVideoCS` saves each clip, the workflow now passes its filepath
|
||||
through `LayerUtility: PurgeVRAM V2` with both cache and model purging enabled.
|
||||
This is a cleanup boundary between sequential clips: it does not alter the
|
||||
filepath, frames or audio, but asks ComfyUI to release cached models and CUDA
|
||||
memory before the next clip starts. It is intended to reduce retained VRAM
|
||||
pressure; it cannot prevent an individual clip from exceeding the card's
|
||||
capacity.
|
||||
|
||||
## Fixed test input
|
||||
|
||||
- **References:** `references/Scene022.png` as `@image1`, `references/Char034_TurnaroundFull_001.png` as `@image2`
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
"inputs": {
|
||||
"text": "C:\\AI\\ComfyUI_windows_portable\\ComfyUI\\output\\glide_00007.mp4",
|
||||
"anything": [
|
||||
"149",
|
||||
"252",
|
||||
0
|
||||
]
|
||||
},
|
||||
@@ -561,6 +561,20 @@
|
||||
"title": "Load Diffusion Model"
|
||||
}
|
||||
},
|
||||
"252": {
|
||||
"inputs": {
|
||||
"anything": [
|
||||
"149",
|
||||
0
|
||||
],
|
||||
"purge_cache": true,
|
||||
"purge_models": true
|
||||
},
|
||||
"class_type": "LayerUtility: PurgeVRAM V2",
|
||||
"_meta": {
|
||||
"title": "Purge VRAM between clips"
|
||||
}
|
||||
},
|
||||
"260": {
|
||||
"inputs": {
|
||||
"ResolutionState": "{\"mode\":\"preset\",\"ratio\":\"16:9\",\"w\":832,\"h\":480,\"custom_w\":1024,\"custom_h\":1024,\"custom_ratio_w\":4,\"custom_ratio_h\":3,\"snap\":16}"
|
||||
@@ -570,4 +584,4 @@
|
||||
"title": "Resolution Pixaroma"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"last_node_id": 260,
|
||||
"last_link_id": 44,
|
||||
"last_link_id": 45,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 119,
|
||||
@@ -2136,6 +2136,61 @@
|
||||
"widgets_values": [
|
||||
"{\"mode\":\"preset\",\"ratio\":\"16:9\",\"w\":1920,\"h\":1080,\"custom_w\":1024,\"custom_h\":1024,\"custom_ratio_w\":4,\"custom_ratio_h\":3,\"snap\":16}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 252,
|
||||
"type": "LayerUtility: PurgeVRAM V2",
|
||||
"pos": [
|
||||
5040,
|
||||
180
|
||||
],
|
||||
"size": {
|
||||
"0": 270,
|
||||
"1": 120
|
||||
},
|
||||
"flags": {},
|
||||
"order": 15,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "anything",
|
||||
"type": "*",
|
||||
"link": 45
|
||||
},
|
||||
{
|
||||
"name": "purge_cache",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "purge_cache"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "purge_models",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "purge_models"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "any",
|
||||
"type": "*",
|
||||
"links": [
|
||||
28
|
||||
],
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"cnr_id": "comfyui_layerstyle",
|
||||
"ver": "",
|
||||
"Node name for S&R": "LayerUtility: PurgeVRAM V2"
|
||||
},
|
||||
"widgets_values": [
|
||||
true,
|
||||
true
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
@@ -2357,11 +2412,11 @@
|
||||
],
|
||||
[
|
||||
28,
|
||||
149,
|
||||
252,
|
||||
0,
|
||||
217,
|
||||
0,
|
||||
"STRING"
|
||||
"*"
|
||||
],
|
||||
[
|
||||
29,
|
||||
@@ -2490,6 +2545,14 @@
|
||||
250,
|
||||
0,
|
||||
"MODEL"
|
||||
],
|
||||
[
|
||||
45,
|
||||
149,
|
||||
0,
|
||||
252,
|
||||
0,
|
||||
"STRING"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
"inputs": {
|
||||
"text": "C:\\AI\\ComfyUI_windows_portable\\ComfyUI\\output\\glide_00007.mp4",
|
||||
"anything": [
|
||||
"149",
|
||||
"252",
|
||||
0
|
||||
]
|
||||
},
|
||||
@@ -558,6 +558,20 @@
|
||||
"title": "Load Diffusion Model"
|
||||
}
|
||||
},
|
||||
"252": {
|
||||
"inputs": {
|
||||
"anything": [
|
||||
"149",
|
||||
0
|
||||
],
|
||||
"purge_cache": true,
|
||||
"purge_models": true
|
||||
},
|
||||
"class_type": "LayerUtility: PurgeVRAM V2",
|
||||
"_meta": {
|
||||
"title": "Purge VRAM between clips"
|
||||
}
|
||||
},
|
||||
"260": {
|
||||
"inputs": {
|
||||
"ResolutionState": "{\"mode\":\"preset\",\"ratio\":\"16:9\",\"w\":1920,\"h\":1080,\"custom_w\":1024,\"custom_h\":1024,\"custom_ratio_w\":4,\"custom_ratio_h\":3,\"snap\":16}"
|
||||
|
||||
Reference in New Issue
Block a user