SimGAN_pytorch icon indicating copy to clipboard operation
SimGAN_pytorch copied to clipboard

Size of Real Image & Synthetic Image not matching

Open nitish116 opened this issue 7 years ago • 2 comments

You put an assert statement to check , if size of real images and synthetic images are matching for pre training Discriminator , but the sizes are different

128 != 52 , because of this it is throwing an error.

Why is that necessary ? How do I fix the error ? Am I working with wrong dataset ?

nitish116 avatar Dec 22 '17 18:12 nitish116

I couldn't remember the details, but this assert means the batch size of real image and synthetic image must be equal. If it is not equal, it can not calculate the loss. In fact, most people use data_loader to load the image now, and pass the batch size parameter to it. I think you should check the code of loading images.

AlexHex7 avatar Jun 05 '18 12:06 AlexHex7

Ошибка из-за того что в наборе данных с реальными изображениями находится всего 52 картинки. Я решил проблему тем, что просто уменьшил batch_size до 32

Temofey avatar Jul 04 '22 18:07 Temofey