Finalize SeedVR2 review additions#112
Open
pollockjj wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR streamlines SeedVR2’s test surface by consolidating many narrowly-scoped regression tests into a smaller set of “production” unit-test modules, while also extending SeedVR2 7B support to use ComfyUI’s optimized var-length attention path and ensuring 7B detection provides explicit RoPE configuration.
Changes:
- Consolidate and reduce SeedVR2 unit tests into a handful of focused test modules (model, internals, VAE decode/tiling, nodes/conditioning).
- Enable SeedVR2 7B window attention to route through
optimized_var_attentionand remove the bespoke split attention implementation. - Add
rope_type="rope3d"andrope_dim=64to SeedVR2 7B detection config (and corresponding assertions).
Reviewed changes
Copilot reviewed 50 out of 50 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| comfy/model_detection.py | Adds explicit rope_type/rope_dim to SeedVR2 7B UNet detection config. |
| comfy/ldm/seedvr/model.py | Removes 7B custom split attention path and routes window attention through optimized_var_attention; drops comfy.ops dependency for that code. |
| tests-unit/comfy_test/model_detection_test.py | Asserts SeedVR2 7B detection now includes rope_type/rope_dim. |
| tests-unit/comfy_test/test_seedvr2_dtype.py | Reduces SeedVR2 dtype coverage to a smaller set of core regression checks. |
| tests-unit/comfy_test/seedvr_vae_forward_test.py | Removes some forward-path regression checks, keeping a reduced set. |
| tests-unit/comfy_test/test_seedvr2_vae_tiled.py | New consolidated tests for SeedVR2 tiled VAE behavior and dispatcher routing. |
| tests-unit/comfy_test/test_seedvr2_vae_decode.py | New consolidated wrapper decode boundary/shape/rank tests and cut_videos padding alignment check. |
| tests-unit/comfy_test/test_seedvr2_model.py | New consolidated model/graph/forward regression suite (merged from multiple prior modules). |
| tests-unit/comfy_test/test_seedvr2_internals.py | New consolidated internals suite (RoPE oracle, GroupNorm limit gate, var-attention registry/guard behavior, 7B attention call-shape). |
| tests-unit/comfy_extras_test/test_seedvr2_nodes.py | New tests for SeedVR2 resize node execution and schema/execute signature drift guard. |
| tests-unit/comfy_extras_test/test_seedvr2_conditioning.py | New consolidated tests for SeedVR2 conditioning + node refactor behavior with isolated import mocking. |
| tests-unit/comfy_test/test_var_attention_pytorch_seedvr2_guard.py | Deleted (coverage moved into consolidated internals test module). |
| tests-unit/comfy_test/test_vae_encode_tiled_seedvr2_method.py | Deleted (coverage moved into consolidated VAE tiling tests). |
| tests-unit/comfy_test/test_vae_encode_tiled_fallback_dispatcher_seedvr2.py | Deleted (coverage moved into consolidated VAE tiling tests). |
| tests-unit/comfy_test/test_vae_encode_tiled_explicit_dispatcher_seedvr2.py | Deleted (coverage moved into consolidated VAE tiling tests). |
| tests-unit/comfy_test/test_vae_decode_tiled_dispatcher_seedvr2_4d.py | Deleted (coverage moved into consolidated VAE tiling tests). |
| tests-unit/comfy_test/test_seedvr2_windows_static_verify.py | Deleted (static token audit removed in favor of runtime-focused consolidated tests). |
| tests-unit/comfy_test/test_seedvr2_vae_graph_boundaries.py | Deleted (merged into test_seedvr2_model.py). |
| tests-unit/comfy_test/test_seedvr2_saved_latent_decode_boundary.py | Deleted (boundary coverage moved into consolidated suites). |
| tests-unit/comfy_test/test_seedvr2_resize_and_pad_pre_encode_state.py | Deleted (node tests moved to tests-unit/comfy_extras_test/test_seedvr2_nodes.py). |
| tests-unit/comfy_test/test_seedvr2_refactor_nodes.py | Deleted (merged into test_seedvr2_conditioning.py). |
| tests-unit/comfy_test/test_seedvr2_non_goal_static_audit.py | Deleted (git-diff-based audit removed). |
| tests-unit/comfy_test/test_seedvr2_hidden_state_static_audit.py | Deleted (static AST audit removed). |
| tests-unit/comfy_test/test_seedvr_var_attention_backends.py | Deleted (coverage moved into test_seedvr2_internals.py). |
| tests-unit/comfy_test/test_seedvr_vae_tiled_temporal_slicing.py | Deleted (coverage moved into test_seedvr2_vae_tiled.py). |
| tests-unit/comfy_test/test_seedvr_vae_tiled_encode_runt_slice_override.py | Deleted (coverage moved into test_seedvr2_vae_tiled.py). |
| tests-unit/comfy_test/test_seedvr_vae_tiled_decode_latent_min_size_override.py | Deleted (coverage moved into test_seedvr2_vae_tiled.py). |
| tests-unit/comfy_test/test_seedvr_vae_tiled_decode_5d.py | Deleted (coverage moved into consolidated SeedVR2 VAE suites). |
| tests-unit/comfy_test/test_seedvr_vae_tiled_args_no_mutate.py | Deleted (static check removed). |
| tests-unit/comfy_test/test_seedvr_vae_loader_metadata.py | Deleted (loader metadata coverage removed/relocated). |
| tests-unit/comfy_test/test_seedvr_vae_decode_unpadded_t.py | Deleted (padding contract now checked via consolidated decode + cut_videos test). |
| tests-unit/comfy_test/test_seedvr_vae_decode_guards.py | Deleted (decode guard coverage moved into test_seedvr2_vae_decode.py). |
| tests-unit/comfy_test/test_seedvr_vae_decode_batch_axes.py | Deleted (batch/time axis coverage merged into consolidated decode tests). |
| tests-unit/comfy_test/test_seedvr_vae_attention_fence.py | Deleted (attention fence test removed). |
| tests-unit/comfy_test/test_seedvr_vae_5d_tiled_decode.py | Deleted (coverage moved into consolidated SeedVR2 VAE tiling tests). |
| tests-unit/comfy_test/test_seedvr_rope_rewrite.py | Deleted (RoPE oracle coverage moved into test_seedvr2_internals.py). |
| tests-unit/comfy_test/test_seedvr_rope_delegation.py | Deleted (delegation coverage removed/merged into oracle tests). |
| tests-unit/comfy_test/test_seedvr_latent_format.py | Deleted (latent-format coverage moved into test_seedvr2_model.py). |
| tests-unit/comfy_test/test_seedvr_groupnorm_limit.py | Deleted (coverage moved into test_seedvr2_internals.py). |
| tests-unit/comfy_test/test_seedvr_forward_no_device_cast.py | Deleted (coverage moved into consolidated suites). |
| tests-unit/comfy_test/test_seedvr_clear_vae_memory_soft_empty_cache.py | Deleted (cache-clear coverage removed). |
| tests-unit/comfy_test/test_seedvr_7b_final_block_text_path.py | Deleted (coverage moved into test_seedvr2_model.py). |
| tests-unit/comfy_test/test_diffusers_metadata_guard.py | Deleted (guard coverage removed). |
| tests-unit/comfy_test/seedvr_vae_wrapper_forward_test.py | Deleted (wrapper forward coverage removed). |
| tests-unit/comfy_extras_test/test_seedvr2_node_boundaries.py | Deleted (schema/signature checks moved into test_seedvr2_nodes.py). |
| tests-unit/comfy_extras_test/test_seedvr_node_signature.py | Deleted (merged into test_seedvr2_nodes.py). |
| tests-unit/comfy_test/seedvr_model_test.py | Deleted (merged into test_seedvr2_model.py). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ) | ||
| vid_out, txt_out = unconcat_win(out) | ||
| if self.rope: | ||
| if self.version_7b: |
| import comfy.ldm.seedvr.vae as seedvr_vae_mod # noqa: E402 | ||
| import comfy.model_management # noqa: E402 | ||
| import comfy.sample # noqa: E402 | ||
| import comfy.sd as sd_mod # noqa: E402 |
Owner
Author
Independent Comfy checklist review — round 1status: FAIL Checklist
Findings
Blocking Gate Errors
|
Owner
Author
Independent Comfy checklist review — round 1status: FAIL Checklist
Findings
Blocking Gate Errors
|
a5729f0 to
fc4a135
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the review-prep delta on top of the current SeedVR2 support branch:
The DynamicVRAM-related SeedVR2 cache setting and public-surface sanitation cleanup are already on the base branch.