gan icon indicating copy to clipboard operation
gan copied to clipboard

unsupported operand type(s) for *: 'NoneType' and 'int'

Open reza-mazarlou opened this issue 6 years ago • 0 comments

hi I try to train with 1100 image(126*126) and after run : 1- python make_record.py --images-path=./data --record-path=./train.record 2- python gan_train.py

but console give me this error :

Traceback (most recent call last):
  File "gan_train.py", line 310, in <module>
    train()
  File "gan_train.py", line 244, in train
    fake_image = generator(latent_input, train_logical=True)
  File "gan_train.py", line 217, in generator
    act3 = gen_conv_block(act2, GEN_D3, train_logical, 'conv3')
  File "gan_train.py", line 127, in gen_conv_block
    conv = conv_transpose(x, depth, kernel=[5,5], strides=[2,2], name='conv')
  File "gan_train.py", line 111, in conv_transpose
    out_shape = [in_batch, in_height*strides[0], in_width*strides[1], out_depth]
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

python version : 3.5 OS : windows 10

reza-mazarlou avatar Jan 01 '19 12:01 reza-mazarlou