Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Julius-ZCJ opened this issue Sep 17, 2020 · 3 comments

Comments

@Julius-ZCJ
Copy link

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', batch_size)
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
Copy link
Owner

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

@Yucitrus
Copy link

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
Copy link
Owner

Hi, which python version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants