diff --git a/optimized/R2V/minimax/sparse-latent-upscale/README.md b/optimized/R2V/minimax/sparse-latent-upscale/README.md index fb08c74..1cdb17d 100644 --- a/optimized/R2V/minimax/sparse-latent-upscale/README.md +++ b/optimized/R2V/minimax/sparse-latent-upscale/README.md @@ -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` diff --git a/optimized/R2V/minimax/sparse-latent-upscale/workflow-source.json b/optimized/R2V/minimax/sparse-latent-upscale/workflow-source.json index 573e3b8..3f59e29 100644 --- a/optimized/R2V/minimax/sparse-latent-upscale/workflow-source.json +++ b/optimized/R2V/minimax/sparse-latent-upscale/workflow-source.json @@ -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" } } -} \ No newline at end of file +} diff --git a/optimized/R2V/minimax/sparse-latent-upscale/workflow-ui.json b/optimized/R2V/minimax/sparse-latent-upscale/workflow-ui.json index e63d8d1..2a15ae6 100644 --- a/optimized/R2V/minimax/sparse-latent-upscale/workflow-ui.json +++ b/optimized/R2V/minimax/sparse-latent-upscale/workflow-ui.json @@ -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": [], diff --git a/optimized/R2V/minimax/sparse-latent-upscale/workflow.json b/optimized/R2V/minimax/sparse-latent-upscale/workflow.json index a16b44f..c5e71b0 100644 --- a/optimized/R2V/minimax/sparse-latent-upscale/workflow.json +++ b/optimized/R2V/minimax/sparse-latent-upscale/workflow.json @@ -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}"