SVD_Xtend icon indicating copy to clipboard operation
SVD_Xtend copied to clipboard

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 6 but got size 5 for tensor number 1 in the list.

Open TIANTEA opened this issue 9 months ago • 5 comments

when it runs:

model_pred = unet( inp_noisy_latents, timesteps, encoder_hidden_states, added_time_ids=added_time_ids).sample

The error is "RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 6 but got size 5 for tensor number 1 in the list."

could you please tell me how to fix this thanks

TIANTEA avatar May 10 '24 07:05 TIANTEA

have you sovled it?I meet same problem.

xiangweifeng avatar May 22 '24 13:05 xiangweifeng

Hi, its related to the size of the input image.

xiangweifeng avatar May 23 '24 08:05 xiangweifeng

when i set batch_size==2, i also meet the same problem. When the batch_size is set to 1, this problem was solved.

Yww12 avatar Jun 14 '24 08:06 Yww12

@Yww12 @xiangweifeng my input images are 320x240 and I am running into the same error here. I am using a batch size of 1. How did you solve this?

danielvegamyhre avatar Jul 26 '24 17:07 danielvegamyhre

try to multiple of 64.

xiangweifeng avatar Aug 20 '24 03:08 xiangweifeng