Skip to content

fix(templates): decode SeedVR2 latents without tiled VAE nodes - #1506

Open
comfyui-wiki wants to merge 2 commits into
mainfrom
fix/seedvr2-drop-tiled-vae
Open

comfyui-wiki wants to merge 2 commits into
mainfrom
fix/seedvr2-drop-tiled-vae

Conversation

@comfyui-wiki

Copy link
Copy Markdown
Member

The SeedVR2 VAE slices its own encode and decode now: decode() goes straight through slicing_decode (comfy/ldm/seedvr/vae.py), and comfy/sd.py retries with the VAE's own spatial tiling when the regular pass runs out of memory. The external VAEEncodeTiled / VAEDecodeTiled pair therefore only adds work: the file comments note that external temporal tiling breaks the causal VAE's MemoryState continuity.

Changes

  • utility_seedvr2_3b_int8_upscale_video, utility_seedvr2_3b_int8_upscale_image, utility_seedvr2_7b_int8_upscale_image: VAEEncodeTiled → VAEEncode, VAEDecodeTiled → VAEDecode inside the subgraphs. Node ids, links and promoted widgets are untouched — the tile parameters were never promoted; properties["Node name for S&R"] is updated with the type.
  • 3B templates: the note gains a Model choice section. ByteDance replaced the 3B checkpoint upstream; the file the templates load is the current one, while seedvr2_3b_old_int8_convrot.safetensors (already in Comfy-Org/SeedVR2, 3.22 GB) is the earlier 3B that most custom-node setups run — weaker, but softer and cleaner. Switching unet_name compares the two; nothing else changes.

Verification

  • pnpm sync:templates + validate_templates, validate_thumbnails, validate_manifests, validate_blueprints, check_input_assets all pass locally. (sync:templates still reports the pre-existing spellcheck hit on "AI's" in index.json, untouched by this PR.)
  • Rendered on an A100 (forge2) with the shared Comfy-Org/SeedVR2 weights: 3B image success in 5.2 s, 3B video success in 50.5 s, both node_errors empty. The video decode hit Ran out of memory when regular VAE decoding, retrying with tiled VAE decoding once and recovered through the VAE's own spatial slicing — output has no periodic seams, and neighbouring-frame error spikes only where the source clip cuts.
  • Output vs the current thumbnails: image MAE 4.94 raw / 1.61 after a 3 px blur, video mean frame MAE 7.95. Thumbnails unchanged.
  • Notes measured at their real rendered height (615 / 696 / 630 px) and stay inside the existing node sizes.

Not in this PR

ComfyUI ships a subgraph blueprint for the same workflow (blueprints/Upscale Video (SeedVR2 3B Int8).json, nodes 106/110) that still uses the tiled pair. Updating it is a ComfyUI change; the mirror here is imported read-only via scripts/blueprints/import_blueprints.py.

The SeedVR2 VAE slices its own encode/decode now (comfy/ldm/seedvr/vae.py
slicing_decode), and sd.py falls back to spatial-only tiling on OOM, so the
external VAEEncodeTiled/VAEDecodeTiled pair only added seams. Swap both for
the plain nodes in the three native SeedVR2 templates.

The 3B notes gain a model-choice section: ByteDance replaced the 3B
checkpoint upstream, and seedvr2_3b_old_int8_convrot.safetensors (the
earlier, softer-looking one) is now a switchable option.
@github-actions

Copy link
Copy Markdown
Contributor

ComfyUI Node Compatibility Report

Informational only — this check does not block merging.

Baseline: static scan of ComfyUI source — reports removed/deprecated core nodes only.

Status: review suggested — some templates may use removed, deprecated, or outdated node settings.

Metric Count
Checked workflows 789
Clean 788
With findings 1
Total findings 1 (0 error(s), 1 warning(s))

Baseline: mode static, branch master, commit 77a66bf38375, 1071 node specs

At a glance

Severity Templates Findings
🟡 Warnings 1 1

Issue types

Type Count
Deprecated node 1
What each issue type means
Type Guidance
Deprecated node Node is marked deprecated — consider migrating to the recommended replacement.

Details

🟡 Warnings — 1 template(s), 1 finding(s). Deprecated nodes — migrate when convenient
Template Findings
api_heygen_avatar_6_id2v.json 1

This comment is automatically updated by the ComfyUI Node Compatibility Report workflow.

@github-actions

Copy link
Copy Markdown
Contributor

🔤 Spellcheck Results

Check Status
templates/index.json (titles & descriptions) ✅ No issues found
Workflow JSON notes (MarkdownNote / Note nodes) ✅ No issues found

All spellchecks passed! 🎉

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Three SeedVR2 workflows switch from tiled to standard VAE encoding and decoding. Two add notes about earlier checkpoints, and their manifest checksums change. The template catalog updates freshness labels for 12 entries and recommendations for two.

Changes: SeedVR2 workflow templates

Layer / File(s) Summary
VAE nodes and checkpoint notes
templates/utility_seedvr2_3b_int8_upscale_image.json, templates/utility_seedvr2_3b_int8_upscale_video.json, templates/utility_seedvr2_7b_int8_upscale_image.json
The three templates replace tiled VAE encode and decode nodes with standard nodes and remove tiled-specific settings. The two 3B templates add notes about the earlier checkpoint.
Template manifest checksums
packages/core/src/comfyui_workflow_templates_core/manifest.json
The manifest SHA-256 values change for the three SeedVR2 templates.

Template catalog metadata

Layer / File(s) Summary
Catalog freshness and recommendations
templates/index.mcp.json
Freshness labels change for 12 templates. Recommendations change to not_recommended for VEED dubbing and Patina PBR maps; their usage values remain unchanged.

Possibly related issues

  • Comfy-Org/workflow_templates issue 1491: This PR edits template JSON files and updates the catalog index, but the supplied summary does not confirm whether curated input/output data was replaced with stubs.

Suggested reviewers: christian-byrne

Merge Risk: Minimal · up to 41f5b

This change moves three SeedVR2 upscale templates to the standard VAE encode and decode nodes and adds notes about the earlier 3B checkpoint. It also updates catalog freshness labels. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 2

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

The configuration directory could not be loaded. This review used the available YAML and UI settings; directory instructions and checks were not evaluated.

Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use path_filters to narrow the review scope.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3db72614-afb6-4b51-86ff-11f3b79445f2
Commits

Reviewing files that changed from the base of the PR and between 5a0d3d5 and 41f5b9f.

Files selected for processing: 5

  • packages/core/src/comfyui_workflow_templates_core/manifest.json
  • templates/index.mcp.json
  • templates/utility_seedvr2_3b_int8_upscale_image.json
  • templates/utility_seedvr2_3b_int8_upscale_video.json
  • templates/utility_seedvr2_7b_int8_upscale_image.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants