GithubHelp home page GithubHelp logo

matchue-stylegan's People

Contributors

manicman1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

matchue-stylegan's Issues

Google Drive Data link Invalid

Hey, I have watched your video and read the code. I was trying to rerun the code in colab and It seems to appear that the data link that is pokemon.npy is not downloadable, I mean it shows 404 error on the drive page. Can you please update the link for the pokemon dataset.

TypeError

It is great effort. I have a little bit issue. when I "Train the models" the error "TypeError: Cannot convert a symbolic Keras input/output to a numpy array. This error may indicate that you're trying to pass a symbolic value to a NumPy call, which is not supported. Or, you may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model" occurs due to the line "loss = DiscriminatorModel.train_on_batch([real_images, latent_vectors], [real_labels, fake_labels, dummy_labels])" Please help anyone to resolve this issue

'bias_initializer' problem

Thank you for your video. I found you on youtube and try to do this amazing GAN along with you, But I got this problem.

  • call() got an unexpected keyword argument 'bias_initializer'

def g_block(input_tensor, latent_vector, filters):
gamma = Dense(filters)(latent_vector, bias_initializer = 'ones')
beta = Dense(filters)(latent_vector)

out = UpSampling2D()(input_tensor)
out = Conv2D(filters, 3, padding = 'same')(out)
out = Lambda(AdaIN)([out, gamma, beta])
out = Activation('relu')(out)

return out

#Latent input
latent_input = Input([64])

#Map latent input
latent = Dense(64, activation = 'relu')(latent_input)
latent = Dense(64, activation = 'relu')(latent)
latent = Dense(64, activation = 'relu')(latent)

#Reshape to 4x4x64
x = Dense(4464, activation = 'relu')(latent_input)
x = Reshape([4, 4, 64])(x)

#Size: 4x4x64
x = g_block(x, latent, 64)

#Size: 8x8x64
x = g_block(x, latent, 32)

#Size: 16x16x32
x = g_block(x, latent, 16)

#Size: 32x32x16
x = g_block(x, latent, 8)

#Size: 64x64x8, make RGB with values between 0 and 1
image_output = Conv2D(3, 1, padding = 'same', activation = 'sigmoid')(x)

#Make Model
generator = Model(inputs = latent_input, outputs = image_output)

#Model Summary
generator.summary()

call() got an unexpected keyword argument 'bias_initializer'

Could you tell me, What if bias_initializer didn't set. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.