lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
30.52k stars 2.74k forks source link

dataset include different sizes #667

Open remember00000 opened 8 months ago

remember00000 commented 8 months ago

Can the model only accept that the input images are all the same size? My data set is guaranteed to be a multiple of 64 in width and height (obtained from the canny preprocessing codes in this repository), but an error is reported: RuntimeError: stack expects each tensor to be equal size, but got [512, 896, 3] at entry 0 and [512, 1152, 3] at entry 1

YupingQiu commented 2 weeks ago

yes, you need to resize your data to the same size, otherwise there is a bug here

Chantec commented 1 week ago

yes, you need to resize your data to the same size, otherwise there is a bug here

If the size is the same, but it's not 512x512, is that okay? My size is 160x160.