EdwardSmith1884 / 3D-IWGAN

A repository for the paper "Improved Adversarial Systems for 3D Object Generation and Reconstruction".
MIT License
195 stars 56 forks source link

Value passed to parameter 'input_sizes' has DataType float32 not in list of allowed values: int32, int64 #27

Open Julius-ZCJ opened 3 years ago

Julius-ZCJ commented 3 years ago

When I run you item, I get this error.

Traceback (most recent call last): File "E:/GAN/7-3D-IWGAN-master/3D-IWGAN-master/3D-Generation/32-3D-Gan.py", line 49, in net_g , G_train = generator_32(z, is_train=True, reuse = False, sig= True, batch_size=args.batchsize) File "E:\GAN\7-3D-IWGAN-master\3D-IWGAN-master\scripts\models.py", line 74, in generator_32 net_2 = Deconv(net_1, gf_dim, eighth, '2', batchsize) File "E:\GAN\7-3D-IWGAN-master\3D-IWGAN-master\scripts\models.py", line 20, in Deconv act=tf.identity, name='g/net' + net + '/deconv') File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorlayer\layers.py", line 1512, in init self.outputs = act( tf.nn.conv3d_transpose(self.inputs, W, output_shape=output_shape, strides=strides, padding=padding) + b ) File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2473, in conv3d_transpose name=name) File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2539, in conv3d_transpose_v2 name=name) File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 2237, in conv3d_backprop_input_v2 dilations=dilations, name=name) File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 627, in _apply_op_helper param_name=input_name) File "D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 61, in _SatisfiesTypeConstraint ", ".join(dtypes.as_dtype(x).name for x in allowed_list))) TypeError: Value passed to parameter 'input_sizes' has DataType float32 not in list of allowed values: int32, int64

I find this error raise becaues 'Conv3DBackpropInputV2' not has float32 dtype, I don't konw why. Do you have some ideas for this error.

By the why, what tensorflow and tensorlayer version do you used?

EdwardSmith1884 commented 3 years ago

Hi, try tensorflow==1.13.2 and tensorlayer==1.5.0

Yucitrus commented 1 year ago

Hi, try tensorflow==1.13.2 and tensorlayer==1.5.0

After replacing with tensorflow==1.13.2 and tensorlayer==1.5.0, the error still exists. Is there any other solution?

EdwardSmith1884 commented 1 year ago

Hi, which python version are you using?