Skip to content

[BUG] RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 832 but got size 768 for tensor number 1 in the list. #2276

Description

@Tophness

Had no issues with doing this about 3 weeks or so ago.
4 reference images + 1 start image causes this:

Traceback (most recent call last):
File "C:\Users\Chris\AppData\Local\Wan2GP\wgp.py", line 8658, in queue_worker_func
success = generate_media(task, send_cmd, plugin_data=plugin_data, **filtered_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Chris\AppData\Local\Wan2GP\wgp.py", line 7803, in generate_media
src_videos, src_masks = prepare_video_guide_and_mask( [video_guide_processed] + ([] if video_guide_processed2 is None else [video_guide_processed2]),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Chris\AppData\Local\Wan2GP\shared\utils\utils.py", line 745, in prepare_video_guide_and_mask
src_video = pre_video_guide if src_video is None else torch.cat( [pre_video_guide, src_video], dim=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Chris\AppData\Local\Wan2GP\env_venv\Lib\site-packages\torch\utils_device.py", line 109, in torch_function
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 832 but got size 768 for tensor number 1 in the list.
Error Queue autosaved successfully to error_queue.zip

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions