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

TypeError: __init__() got multiple values for argument 'kernel_size' #1

Open
ShibaPrasad opened this issue Dec 13, 2019 · 0 comments
Open

Comments

@ShibaPrasad
Copy link

HI,

i am trying to reproduce the code and getting below error.

File "/nfs/s-iibi54/users/skuanar/Downloads/VAE-GAN-Autoencoding-Beyond-Pixels-Using-a-Similarity-Metric-master/vaegan.py", line 20, in conv2d
conv = tf.compat.v1.layers.Conv2D(x, output_dim, kernel_size=k_size, strides=[stride, stride], padding='SAME', kernel_initializer=init(stddev=0.02), name=name)
TypeError: init() got multiple values for argument 'kernel_size'

code where error comes:

def conv2d(x, output_dim, k_size=5, stride=2, stddev=0.02, name="conv2d"):
#conv = tf.keras.layers.Conv2D(x, output_dim, kernel_size=k_size, strides=[stride, stride], padding="SAME", kernel_initializer=init(stddev=0.02), name=name)
conv = tf.compat.v1.layers.Conv2D(x, output_dim, kernel_size=k_size, strides=[stride, stride], padding='SAME', kernel_initializer=init(stddev=0.02), name=name)

return conv
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

1 participant