ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Add SeedVR2 support (CORE-6)

Open pollockjj opened this issue 6 months ago β€’ 7 comments

Summary

  • Add native SeedVR2 model detection, latent format, dtype policy, and VAE support.
  • Add SeedVR2 resize, conditioning, progressive sampler, post-processing, and workflow-node support.
  • Add SeedVR2-specific attention, VAE tiling, temporal chunking, and regression coverage.

Workflows

Example workflows are available here: https://gist.github.com/pollockjj/8d40c875e9eacb9b560709faef4ea31f

Models

https://huggingface.co/pollockjj/SeedVR2

Model repo - contains all released SeedVR2 models with conditioning embedded so only one model file needed.

Tracking

Linear: https://linear.app/comfyorg/issue/CORE-6/support-seedvr2

Validation

  • SeedVR2 unit regression suite: 80 passed.
  • SeedVR2 RoPE regression suite: 11 passed.
  • Local SeedVR2 simple-video workflow completed successfully.
  • Fork validation passed macOS, Ubuntu, and Windows test jobs, Ruff, Pylint, line endings, and co-author checks.

pollockjj avatar May 26 '26 05:05 pollockjj

Review Change Stack

[!NOTE]

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • [ ] ▢️ Resume reviews
  • [ ] πŸ” Trigger review
πŸ“ Walkthrough

Walkthrough

This PR introduces SeedVR2, a video-text diffusion model, along with supporting infrastructure. It implements the NaDiT transformer backbone with variable-length attention, a video VAE with temporal/spatial tiling, model detection for multiple checkpoint variants, and a complete ComfyUI extension with nodes for input preprocessing, output postprocessing, text conditioning, and progressive sampling. The implementation includes comprehensive test coverage for model detection, node contracts, tensor transformations, memory estimation, and internal regression scenarios.

πŸš₯ Pre-merge checks | βœ… 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 9.98% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (4 passed)
Check name Status Explanation
Title check βœ… Passed The title "Add SeedVR2 support (CORE-6)" directly and clearly describes the main change: introducing native SeedVR2 model support throughout the codebase.
Description check βœ… Passed The description provides relevant context about the changeset, covering SeedVR2 model detection, latent format, VAE support, node implementations, validation results, and resource links.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar May 26 '26 06:05 coderabbitai[bot]

seems it doesn't work with the Numz files.

https://huggingface.co/numz/SeedVR2_comfyUI

Also, the bundled checkpoint here, it means the original file from ByteDance? The size is pretty big for my poor nvme, 33GB for 7b models. image

Can we get the comfy file somehow, or should we wait until it gets merged?

muljanis45 avatar May 26 '26 08:05 muljanis45

Can we get the comfy file somehow, or should we wait until it gets merged?

Updated PR with interim models location.

https://huggingface.co/pollockjj/SeedVR2

pollockjj avatar May 26 '26 10:05 pollockjj

Updated PR with interim models location.

https://huggingface.co/pollockjj/SeedVR2

Thank you!

The first try worked fine, and I come here to asking about the VAE process (decode/encode) not utilizing dynamic VRAM.

But now, after restarting Comfy to test it again, I got this error

G:\AI\ComfyUI>git show
commit f632ec67da9f86056ff7fa95cd79a677f840296b (HEAD -> seedvr-test)
Author: John Pollock <[email protected]>
Date:   Mon May 25 22:13:06 2026 -0500

    Add SeedVR2 integration coverage

diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml
index d05179cd..c52defc7 100644
--- a/.github/workflows/test-unit.yml
+++ b/.github/workflows/test-unit.yml
@@ -2,9 +2,9 @@ name: Unit Tests

 on:
   push:
-    branches: [ main, master, release/** ]
+    branches: [ main, master, develop, release/** ]
   pull_request:
-    branches: [ main, master, release/** ]
+    branches: [ main, master, develop, release/** ]

 jobs:
   test:
@@ -12,7 +12,6 @@ jobs:
       matrix:
         os: [ubuntu-latest, windows-2022, macos-latest]
     runs-on: ${{ matrix.os }}
-    continue-on-error: true
     steps:
     - uses: actions/checkout@v4
:
[INFO] got prompt
[INFO] Using pytorch attention in VAE
[INFO] Using pytorch attention in VAE
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float16
[INFO] Requested to load VideoAutoencoderKLWrapper
[INFO] loaded completely;  478.07 MB loaded, full load: True
[ERROR] !!! Exception during processing !!! CUDA error: an illegal memory access was encountered
Search for `cudaErrorIllegalAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

[ERROR] Traceback (most recent call last):
  File "G:\AI\ComfyUI\execution.py", line 536, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\execution.py", line 336, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\execution.py", line 310, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "G:\AI\ComfyUI\execution.py", line 298, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "G:\AI\ComfyUI\nodes.py", line 382, in encode
    t = vae.encode(pixels)
        ^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\sd.py", line 1301, in encode
    model_management.raise_non_oom(e)
  File "G:\AI\ComfyUI\comfy\model_management.py", line 394, in raise_non_oom
    raise e
  File "G:\AI\ComfyUI\comfy\sd.py", line 1292, in encode
    out = self.first_stage_model.encode(pixels_in)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 2345, in encode
    p = super().encode(x)
        ^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 2203, in encode
    h = self.slicing_encode(x)
        ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 2272, in slicing_encode
    return self._encode(x)
           ^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 2225, in _encode
    h = self.encoder(_x, memory_state=memory_state)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 1643, in forward
    sample = down_block(sample, memory_state=memory_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 1299, in forward
    hidden_states = resnet(hidden_states, temb=None, memory_state=memory_state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 1201, in forward
    hidden_states = self.conv1(hidden_states, memory_state=memory_state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 796, in forward
    return self.slicing_forward(input, memory_state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 865, in slicing_forward
    input[i] = self.memory_limit_conv(
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\comfy\ldm\seedvr\vae.py", line 747, in memory_limit_conv
    x[idx] = torch.cat([prev_cache[idx], x[idx]], dim=split_dim - 1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `cudaErrorIllegalAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "G:\AI\ComfyUI\execution.py", line 541, in execute
    comfy.model_management.reset_cast_buffers()
  File "G:\AI\ComfyUI\comfy\model_management.py", line 1367, in reset_cast_buffers
    synchronize()
  File "G:\AI\ComfyUI\comfy\model_management.py", line 1942, in synchronize
    torch.cuda.synchronize()
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\cuda\__init__.py", line 1108, in synchronize
    return torch._C._cuda_synchronize()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `cudaErrorIllegalAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.


[INFO] Prompt executed in 1.41 seconds
Fatal Python error: Aborted

Stack (most recent call first):
  File "G:\AI\ComfyUI\main.py", line 371 in prompt_worker
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Extension modules: sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, greenlet._greenlet, markupsafe._speedups, yaml._yaml, PIL._imaging, multidict._multidict, yarl._quoting_c, propcache._helpers_c, _brotli, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket.mask, aiohttp._websocket.reader_c, frozenlist._frozenlist, charset_normalizer.md, numpy._core._multiarray_umath, numpy.linalg._umath_linalg, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._pcg64, numpy.random._mt19937, numpy.random._generator, numpy.random._philox, numpy.random._sfc64, numpy.random.mtrand, psutil._psutil_windows, PIL._imagingft, av._core, av.logging, av.bytesource, av.buffer, av.audio.format, av.error, av.dictionary, av.container.pyio, av.option, av.descriptor, av.format, av.utils, av.stream, av.container.streams, av.sidedata.encparams, av.sidedata.motionvectors, av.sidedata.sidedata, av.opaque, av.packet, av.container.input, av.container.output, av.container.core, av.codec.context[ERROR] Error handling request from 127.0.0.1
Traceback (most recent call last):
  File "G:\AI\ComfyUI\venv\Lib\site-packages\aiohttp\web_protocol.py", line 510, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\aiohttp\web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\aiohttp\web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\middleware\cache_middleware.py", line 27, in cache_control
    response: web.Response = await handler(request)
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\server.py", line 87, in deprecation_warning
    response: web.Response = await handler(request)
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\server.py", line 181, in origin_only_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\server.py", line 195, in block_external_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\custom_nodes\ComfyUI-MemoryVisualization\__init__.py", line 204, in aimdo_vram_status
    free_cuda, total_vram = torch.cuda.mem_get_info(device)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\AI\ComfyUI\venv\Lib\site-packages\torch\cuda\memory.py", line 897, in mem_get_info
    return torch.cuda.cudart().cudaMemGetInfo(device)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
torch.AcceleratorError: CUDA error: an illegal memory access was encountered
Search for `cudaErrorIllegalAddress' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

, av.video.format, av.video.reformatter, av.plane, av.video.plane, av.video.frame, av.video.stream, av.codec.hwaccel, av.codec.codec, av.frame, av.audio.layout, av.audio.plane, av.audio.frame, av.audio.stream, av.filter.link, av.filter.context, av.filter.graph, av.filter.filter, av.filter.loudnorm, av.audio.resampler, av.audio.codeccontext, av.audio.fifo, av.bitstream, av.video.codeccontext, _cyutility, scipy._cyutility, scipy._lib._ccallback_c, scipy.ndimage._nd_image, scipy.ndimage._rank_filter_1d, scipy.special._ufuncs_cxx, scipy.special._ellip_harm_2, scipy.special._special_ufuncs, scipy.special._gufuncs, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, _ni_label, scipy.ndimage._ni_label, regex._regex, sentencepiece._sentencepiece, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate._vode, scipy.integrate._dop, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._batched_linalg, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_schur_sqrtm, scipy.linalg._matfuncs_expm, scipy.linalg._linalg_pythran, scipy.linalg.cython_blas, scipy.linalg._decomp_update, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpacklib, scipy.sparse.linalg._propack, scipy.optimize._group_columns, scipy._lib.messagestream, scipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._slsqplib, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, scipy.optimize._zeros, scipy._lib._uarray._uarray, scipy.linalg._decomp_interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.spatial._ckdtree, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._hausdorff, scipy.spatial._distance_wrap, scipy.spatial.transform._rotation_cy, scipy.spatial.transform._rigid_transform_cy, scipy.optimize._direct, scipy.interpolate._fitpack, scipy.interpolate._dfitpack, scipy.interpolate._dierckx, scipy.interpolate._ppoly, scipy.interpolate._interpnd, scipy.interpolate._rbfinterp_pythran, scipy.interpolate._rgi_cython, scipy.special.cython_special, scipy.stats._stats, scipy.stats._biasedurn, scipy.stats._stats_pythran, scipy.stats._levy_stable.levyst, scipy.stats._ansari_swilk_statistics, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.stats._sobol, scipy.stats._qmc_cy, scipy.stats._rcont.rcont, scipy.stats._qmvnt_cy, av.subtitles.stream, scipy.signal._sigtools, scipy.signal._max_len_seq_inner, scipy.signal._upfirdn_apply, scipy.signal._spline, scipy.signal._sosfilt, scipy.signal._peak_finding_utils, kiwisolver._cext, _cffi_backend, sklearn.__check_build._check_build, pyarrow.lib, pandas._libs.tslibs.ccalendar, pandas._libs.tslibs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.tslibs.tzconversion, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.strptime, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._libs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.lib, pyarrow._compute, pandas._libs.ops, pandas._libs.hashing, pandas._libs.arrays, pandas._libs.tslib, pandas._libs.sparse, pandas._libs.internals, pandas._libs.indexing, pandas._libs.index, pandas._libs.writers, pandas._libs.join, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.groupby, pandas._libs.json, pandas._libs.parsers, pandas._libs.testing, sklearn._cyutility, sklearn.utils._isfinite, sklearn.utils.sparsefuncs_fast, sklearn.utils.murmurhash, sklearn.utils._openmp_helpers, sklearn.metrics.cluster._expected_mutual_info_fast, sklearn.metrics._dist_metrics, sklearn.metrics._pairwise_distances_reduction._datasets_pair, sklearn.utils._cython_blas, sklearn.metrics._pairwise_distances_reduction._base, sklearn.metrics._pairwise_distances_reduction._middle_term_computer, sklearn.utils._heap, sklearn.utils._sorting, sklearn.metrics._pairwise_distances_reduction._argkmin, sklearn.metrics._pairwise_distances_reduction._argkmin_classmode, sklearn.utils._vector_sentinel, sklearn.metrics._pairwise_distances_reduction._radius_neighbors, sklearn.metrics._pairwise_distances_reduction._radius_neighbors_classmode, sklearn.metrics._pairwise_fast, sklearn.preprocessing._csr_polynomial_expansion, sklearn.preprocessing._target_encoder_fast, skimage.measure._ccomp, skimage.measure._moments_cy, skimage.measure._find_contours_cy, skimage.measure._marching_cubes_lewiner_cy, numba.core.typeconv._typeconv, numba._helperlib, numba._dynfunc, numba._dispatcher, numba.core.runtime._nrt_python, _win32sysloader, win32api, numba.np.ufunc._internal, numba.experimental.jitclass._box, msgpack._cmsgpack, xxhash._xxhash, cuda.bindings._bindings.cydriver, cuda.bindings.cydriver, cuda.bindings.driver, cuda.bindings._bindings.cyruntime_ptds, cuda.bindings._bindings.cyruntime, cuda.bindings.cyruntime, cuda.bindings.runtime, srsly.ujson.ujson, srsly.msgpack._epoch, srsly.msgpack._packer, srsly.msgpack._unpacker, blis.cy, thinc.backends.cblas, cymem.cymem, preshed.maps, blis.py, thinc.backends.linalg, murmurhash.mrmr, thinc.backends.numpy_ops, thinc.layers.premap_ids, thinc.layers.sparselinear, spacy.symbols, preshed.bloom, spacy.strings, spacy.attrs, spacy.parts_of_speech, spacy.morphology, spacy.lexeme, spacy.tokens.morphanalysis, spacy.tokens.token, spacy.tokens.span, spacy.tokens.span_group, spacy.tokens._retokenize, spacy.tokens.doc, spacy.vectors, spacy.vocab, spacy.training.align, spacy.training.alignment_array, spacy.pipeline._parser_internals.nonproj, spacy.training.example, spacy.training.gold_io, spacy.matcher.levenshtein, spacy.matcher.matcher, spacy.matcher.dependencymatcher, spacy.matcher.phrasematcher, spacy.tokenizer, spacy.pipeline.pipe, spacy.pipeline.trainable_pipe, spacy.pipeline._parser_internals.stateclass, spacy.pipeline._parser_internals.transition_system, spacy.kb.kb, spacy.kb.candidate, spacy.kb.kb_in_memory, spacy.ml.parser_model, thinc.extra.search, spacy.pipeline._parser_internals._beam_utils, spacy.pipeline.transition_parser, spacy.pipeline._parser_internals.arc_eager, spacy.pipeline.dep_parser, spacy.pipeline._edit_tree_internals.edit_trees, spacy.pipeline.tagger, spacy.pipeline.morphologizer, spacy.pipeline._parser_internals.ner, spacy.pipeline.ner, spacy.pipeline.senter, spacy.pipeline.sentencizer, google._upb._message, lxml._elementpath, lxml.etree, PIL._imagingcms, scipy.io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, pywt._extensions._dwt, pywt._extensions._cwt, pywt._extensions._pywt, pywt._extensions._swt (total: 338)

muljanis45 avatar May 26 '26 14:05 muljanis45

Updated PR with interim models location. https://huggingface.co/pollockjj/SeedVR2

Thank you!

The first try worked fine, and I come here to asking about the VAE process (decode/encode) not utilizing dynamic VRAM.

But now, after restarting Comfy to test it again, I got this error

That looks like a VAE encode OOM. You might need to adjust the size of the VAE input tile. Try 256 or smaller and see if the error goes away, or try to reduce your upscale magnitude and try again.

pollockjj avatar May 26 '26 16:05 pollockjj

That looks like a VAE encode OOM. You might need to adjust the size of the VAE input tile. Try 256 or smaller and see if the error goes away, or try to reduce your upscale magnitude and try again.

Uhm, when doing vae decode/encode, doesn't it usually fall back to tiled VAE processing if there isn't enough memory?

I don't know what happened, I didn't restart my PC, but I left the pc for few hours, and run comfy again, and now it's working fine again.

The 1st run used the exact same settings & input image as when the CUDA illegal memory access happened.

For the 3rd run, I simply increased the multiplier in SeedVR2Resize Node, and it fell back to tiled VAE.

[INFO] got prompt
[INFO] Using pytorch attention in VAE
[INFO] Using pytorch attention in VAE
[INFO] VAE load device: cuda:0, offload device: cpu, dtype: torch.float16
[INFO] Requested to load VideoAutoencoderKLWrapper
[INFO] loaded completely;  478.07 MB loaded, full load: True
[INFO] model weight dtype torch.float16, manual cast: torch.bfloat16
[INFO] model_type FLOW
[INFO] Requested to load SeedVR2
[INFO] Model SeedVR2 prepared for dynamic VRAM loading. 15713MB Staged. 0 patches attached. Force pre-loaded 576 weights: 28045 KB.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:16<00:00, 16.24s/it,  Model Initialization complete!  ]
[INFO] Requested to load VideoAutoencoderKLWrapper
[INFO] loaded completely;  478.07 MB loaded, full load: True
[INFO] Prompt executed in 45.99 seconds
[INFO] got prompt
[INFO] Model SeedVR2 prepared for dynamic VRAM loading. 15713MB Staged. 0 patches attached. Force pre-loaded 576 weights: 28045 KB.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:13<00:00, 13.48s/it,  Model Initialization complete!  ]
[INFO] Requested to load VideoAutoencoderKLWrapper
[INFO] loaded completely;  478.07 MB loaded, full load: True
[WARNING] Warning: Ran out of memory when regular VAE decoding, retrying with tiled VAE decoding.
[INFO] Prompt executed in 146.81 seconds

muljanis45 avatar May 26 '26 23:05 muljanis45

New Nodes m1it6pm1it6pm1it

Image Workflow - seedvr2_image.json image

Video Workflow - seedvr2_video.json Screenshot_20260603_111232

pollockjj avatar Jun 03 '26 16:06 pollockjj

While trying to preview the input_pixels from Resize Image for SeedVR2 or Resize Image for SeedVR2 (Advanced) I get an error:

TypeError: Cannot handle this data type: (1, 1, 1632, 3), |u1

image
  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 536, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 336, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 310, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 298, in process_inputs
    result = f(**inputs)

  File "C:\Users\Alexis\Documents\comfyui\nodes.py", line 1678, in save_images
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))

  File "C:\Users\Alexis\Documents\comfyui\.venv\Lib\site-packages\PIL\Image.py", line 3431, in fromarray
    raise TypeError(msg) from e

alexisrolland avatar Jun 05 '26 23:06 alexisrolland

While trying to preview the input_pixels from Resize Image for SeedVR2 or Resize Image for SeedVR2 (Advanced) I get an error:

TypeError: Cannot handle this data type: (1, 1, 1632, 3), |u1

image
  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 536, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 336, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 310, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "C:\Users\Alexis\Documents\comfyui\execution.py", line 298, in process_inputs
    result = f(**inputs)

  File "C:\Users\Alexis\Documents\comfyui\nodes.py", line 1678, in save_images
    img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))

  File "C:\Users\Alexis\Documents\comfyui\.venv\Lib\site-packages\PIL\Image.py", line 3431, in fromarray
    raise TypeError(msg) from e

Nope, at this point the image is prepared for the model. The sequence of events precludes it working for both standard ouput and model requirements that prepare 5D tensors for even image processing.

pollockjj avatar Jun 05 '26 23:06 pollockjj

Response to @alexisrolland feedback

  • [x] - Combine SeedVR2Resize + SeedVR2ResizeAdvanced into one node: DONE removed both; resize delegated to native Resize Image/Mask, leaving SeedVR2Preprocess,node no longer resizes; SeedVR2Preprocess is resized_images β†’ processed_images.
  • [x] - Post-process decoded β†’ images DONE
  • [x] - Post-process original_image β†’ original_images DONE original_resized_images (pre-pad resized reference).
  • [x] - Post-process output β†’ display_name="images" DONE
  • [x] - Conditioning input display LATENT β†’ latent DONE
  • [x] - Sampler latent_image β†’ latent (+ execute fn) DONE renamed module-wide.
  • [x] - Sampler output β†’ display_name="latent" DONE

New node names --> regenerated workflows

Screenshot_20260606_110236

seedvr2_video.json

Screenshot_20260606_105425

seedvr2_image.json

pollockjj avatar Jun 06 '26 19:06 pollockjj

4 times upscale error, 2 times is ok. using 3B fp8

[ERROR] !!! Exception during processing !!! Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
[ERROR] Traceback (most recent call last):
  File "M:\ComfyUI\313tor210cu128\ComfyUI\execution.py", line 536, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\execution.py", line 336, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\execution.py", line 310, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\execution.py", line 298, in process_inputs
    result = f(**inputs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\nodes.py", line 1607, in sample
    return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\nodes.py", line 1571, in common_ksampler
    samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
                                  denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step,
                                  force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\sample.py", line 80, in sample
    samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1444, in sample
    return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1334, in sample
    return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1316, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1254, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1229, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 999, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 124, in decorate_context
    return func(*args, **kwargs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\k_diffusion\sampling.py", line 205, in sample_euler
    denoised = model(x, sigma_hat * s_in, **extra_args)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 639, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1202, in __call__
    return self.outer_predict_noise(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1209, in outer_predict_noise
    ).execute(x, timestep, model_options, seed)
      ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 1212, in predict_noise
    return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 619, in sampling_function
    out = calc_cond_batch(model, conds, x, timestep, model_options)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 210, in calc_cond_batch
    return _calc_cond_batch_outer(model, conds, x_in, timestep, model_options)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 218, in _calc_cond_batch_outer
    return executor.execute(model, conds, x_in, timestep, model_options)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\samplers.py", line 334, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\model_base.py", line 189, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ...<2 lines>...
        comfy.patcher_extension.get_all_wrappers(comfy.patcher_extension.WrappersMP.APPLY_MODEL, transformer_options)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ).execute(x, t, c_concat, c_crossattn, control, transformer_options, **kwargs)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\patcher_extension.py", line 113, in execute
    return self.original(*args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\model_base.py", line 233, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds)
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\ldm\seedvr\model.py", line 1639, in forward
    vid, txt, vid_shape, txt_shape = block(
                                     ~~~~~^
        vid=vid,
        ^^^^^^^^
    ...<4 lines>...
        cache=cache,
        ^^^^^^^^^^^^
    )
    ^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\ldm\seedvr\model.py", line 1113, in forward
    vid_attn, txt_attn = self.ada(vid_attn, txt_attn, layer="attn", mode="in", **ada_kwargs)
                         ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\ldm\seedvr\model.py", line 756, in forward
    vid = vid_module(vid, *get_args("vid", args), **get_kwargs("vid", kwargs))
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1776, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "M:\ComfyUI\313tor210cu128\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1787, in _call_impl
    return forward_call(*args, **kwargs)
  File "M:\ComfyUI\313tor210cu128\ComfyUI\comfy\ldm\seedvr\model.py", line 1304, in forward
    return hid.mul_(scaleA + scaleB).add_(shiftA + shiftB)
                    ~~~~~~~^~~~~~~~
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

zwukong avatar Jun 08 '26 11:06 zwukong

Response to @alexisrolland feedback

  • [x] - Combine SeedVR2Resize + SeedVR2ResizeAdvanced into one node: DONE removed both; resize delegated to native Resize Image/Mask, leaving SeedVR2Preprocess,node no longer resizes; SeedVR2Preprocess is resized_images β†’ processed_images.
  • [x] - Post-process decoded β†’ images DONE
  • [x] - Post-process original_image β†’ original_images DONE original_resized_images (pre-pad resized reference).
  • [x] - Post-process output β†’ display_name="images" DONE
  • [x] - Conditioning input display LATENT β†’ latent DONE
  • [x] - Sampler latent_image β†’ latent (+ execute fn) DONE renamed module-wide.
  • [x] - Sampler output β†’ display_name="latent" DONE

New node names --> regenerated workflows

Screenshot_20260606_110236 [seedvr2_video.json](https://github.com/user-attachments/files/28671123/seedvr2_video.json) Screenshot_20260606_105425 [seedvr2_image.json](https://github.com/user-attachments/files/28671124/seedvr2_image.json)

Please add support for GGUF‑quantized models https://huggingface.co/cmeka/SeedVR2-GGUF

makisekurisu-jp avatar Jun 09 '26 05:06 makisekurisu-jp

Please add support for GGUF‑quantized models https://huggingface.co/cmeka/SeedVR2-GGUF

@makisekurisu-jp is there a particular version / size you need?

alexisrolland avatar Jun 09 '26 05:06 alexisrolland

Please add support for GGUF‑quantized models https://huggingface.co/cmeka/SeedVR2-GGUF

@makisekurisu-jp is there a particular version / size you need?

Yes, I need the Q4K_M quantized model. Its size is roughly half that of an FP8 model.

makisekurisu-jp avatar Jun 09 '26 06:06 makisekurisu-jp

really?it will be so so so ....................................... great to add gguf support

zwukong avatar Jun 09 '26 10:06 zwukong