taki0112 / SPADE-Tensorflow

Simple Tensorflow implementation of "Semantic Image Synthesis with Spatially-Adaptive Normalization" a.k.a. GauGAN, SPADE (CVPR 2019 Oral)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type error occurs when image size is not a power of two

necococo opened this issue · comments

For example, if the image size is 632, the following error will occur.

ValueError: Dimensions must be equal, but are 38 and 39 for 'generator/spade_resblock_0/spade_1/mul' (op: 'Mul') with input shapes: [1,38,38,1024], [1,39,39,1024].

tried to set resize_256 to 312 and so on.

With 512, these codes worked fine.

What do you think I should do?