How to custom build a convolution generator network? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsLeNet for Convolution network?Tensorflow: Save History of Images from Generatorhow to get predicted class labels in convolution neural network?Using Generative Adversarial Network to generate Single ImageGAN - why doesn't the generator nullify the noise input?How can both generator and discriminator losses decrease?GAN generator output minibatch classes orderEvaluating performance of Generative Adverserial Network?How to train the generator in a recurrent GAN (Keras)Why is my generator loss function increasing with iterations?

Why does my GNOME settings mention "Moto C Plus"?

Why does BitLocker not use RSA?

How to make an animal which can only breed for a certain number of generations?

Why not use the yoke to control yaw, as well as pitch and roll?

Is Bran literally the world's memory?

Why doesn't the university give past final exams' answers?

Married in secret, can marital status in passport be changed at a later date?

Coin Game with infinite paradox

Raising a bilingual kid. When should we introduce the majority language?

Im stuck and having trouble with ¬P ∨ Q Prove: P → Q

What's the connection between Mr. Nancy and fried chicken?

When speaking, how do you change your mind mid-sentence?

How to keep bees out of canned beverages?

What is the ongoing value of the Kanban board to the developers as opposed to management

Etymology of 見舞い

Are Flameskulls resistant to magical piercing damage?

Has a Nobel Peace laureate ever been accused of war crimes?

How to create a command for the "strange m" symbol in latex?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

How to mute a string and play another at the same time

Is "ein Herz wie das meine" an antiquated or colloquial use of the possesive pronoun?

Can the van der Waals coefficients be negative in the van der Waals equation for real gases?

Pointing to problems without suggesting solutions

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?



How to custom build a convolution generator network?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsLeNet for Convolution network?Tensorflow: Save History of Images from Generatorhow to get predicted class labels in convolution neural network?Using Generative Adversarial Network to generate Single ImageGAN - why doesn't the generator nullify the noise input?How can both generator and discriminator losses decrease?GAN generator output minibatch classes orderEvaluating performance of Generative Adverserial Network?How to train the generator in a recurrent GAN (Keras)Why is my generator loss function increasing with iterations?










0












$begingroup$


I learned GAN's by using mnist dataset(28x28) and codes available in the web. Now I am trying to build a GAN for dataset with images containing custom channel, rows, columns. eg:(3,300,200). I have used this code as generator for mnist-GAN



nch = 200
g_input = Input(shape=[100])
H = Dense(nch*14*14, init='glorot_normal')(g_input)
H = BatchNormalization(mode=2)(H)
H = Activation('relu')(H)
H = Reshape( [nch, 14, 14] )(H)
H = UpSampling2D(size=(2, 2))(H)
H = Convolution2D(nch/2, 3, 3, border_mode='same', init='glorot_uniform')(H)
H = BatchNormalization(mode=2)(H)
H = Activation('relu')(H)
H = Convolution2D(nch/4, 3, 3, border_mode='same', init='glorot_uniform')(H)
H = BatchNormalization(mode=2)(H)
H = Activation('relu')(H)
H = Convolution2D(1, 1, 1, border_mode='same', init='glorot_uniform')(H)
g_V = Activation('sigmoid')(H)
generator = Model(g_input,g_V)
generator.compile(loss='binary_crossentropy', optimizer=opt)
generator.summary()


What is the right way to build a generator with custom output shape?



Is there any simple GUI tool to build and visualize convolution model like this before coding it in a coding environment like keras,tensorflow,pytorch etc?










share|improve this question









$endgroup$
















    0












    $begingroup$


    I learned GAN's by using mnist dataset(28x28) and codes available in the web. Now I am trying to build a GAN for dataset with images containing custom channel, rows, columns. eg:(3,300,200). I have used this code as generator for mnist-GAN



    nch = 200
    g_input = Input(shape=[100])
    H = Dense(nch*14*14, init='glorot_normal')(g_input)
    H = BatchNormalization(mode=2)(H)
    H = Activation('relu')(H)
    H = Reshape( [nch, 14, 14] )(H)
    H = UpSampling2D(size=(2, 2))(H)
    H = Convolution2D(nch/2, 3, 3, border_mode='same', init='glorot_uniform')(H)
    H = BatchNormalization(mode=2)(H)
    H = Activation('relu')(H)
    H = Convolution2D(nch/4, 3, 3, border_mode='same', init='glorot_uniform')(H)
    H = BatchNormalization(mode=2)(H)
    H = Activation('relu')(H)
    H = Convolution2D(1, 1, 1, border_mode='same', init='glorot_uniform')(H)
    g_V = Activation('sigmoid')(H)
    generator = Model(g_input,g_V)
    generator.compile(loss='binary_crossentropy', optimizer=opt)
    generator.summary()


    What is the right way to build a generator with custom output shape?



    Is there any simple GUI tool to build and visualize convolution model like this before coding it in a coding environment like keras,tensorflow,pytorch etc?










    share|improve this question









    $endgroup$














      0












      0








      0





      $begingroup$


      I learned GAN's by using mnist dataset(28x28) and codes available in the web. Now I am trying to build a GAN for dataset with images containing custom channel, rows, columns. eg:(3,300,200). I have used this code as generator for mnist-GAN



      nch = 200
      g_input = Input(shape=[100])
      H = Dense(nch*14*14, init='glorot_normal')(g_input)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Reshape( [nch, 14, 14] )(H)
      H = UpSampling2D(size=(2, 2))(H)
      H = Convolution2D(nch/2, 3, 3, border_mode='same', init='glorot_uniform')(H)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Convolution2D(nch/4, 3, 3, border_mode='same', init='glorot_uniform')(H)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Convolution2D(1, 1, 1, border_mode='same', init='glorot_uniform')(H)
      g_V = Activation('sigmoid')(H)
      generator = Model(g_input,g_V)
      generator.compile(loss='binary_crossentropy', optimizer=opt)
      generator.summary()


      What is the right way to build a generator with custom output shape?



      Is there any simple GUI tool to build and visualize convolution model like this before coding it in a coding environment like keras,tensorflow,pytorch etc?










      share|improve this question









      $endgroup$




      I learned GAN's by using mnist dataset(28x28) and codes available in the web. Now I am trying to build a GAN for dataset with images containing custom channel, rows, columns. eg:(3,300,200). I have used this code as generator for mnist-GAN



      nch = 200
      g_input = Input(shape=[100])
      H = Dense(nch*14*14, init='glorot_normal')(g_input)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Reshape( [nch, 14, 14] )(H)
      H = UpSampling2D(size=(2, 2))(H)
      H = Convolution2D(nch/2, 3, 3, border_mode='same', init='glorot_uniform')(H)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Convolution2D(nch/4, 3, 3, border_mode='same', init='glorot_uniform')(H)
      H = BatchNormalization(mode=2)(H)
      H = Activation('relu')(H)
      H = Convolution2D(1, 1, 1, border_mode='same', init='glorot_uniform')(H)
      g_V = Activation('sigmoid')(H)
      generator = Model(g_input,g_V)
      generator.compile(loss='binary_crossentropy', optimizer=opt)
      generator.summary()


      What is the right way to build a generator with custom output shape?



      Is there any simple GUI tool to build and visualize convolution model like this before coding it in a coding environment like keras,tensorflow,pytorch etc?







      deep-learning keras convnet gan generative-models






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 5 at 5:37









      EkaEka

      1024




      1024




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48652%2fhow-to-custom-build-a-convolution-generator-network%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48652%2fhow-to-custom-build-a-convolution-generator-network%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Marja Vauras Lähteet | Aiheesta muualla | NavigointivalikkoMarja Vauras Turun yliopiston tutkimusportaalissaInfobox OKSuomalaisen Tiedeakatemian varsinaiset jäsenetKasvatustieteiden tiedekunnan dekaanit ja muu johtoMarja VaurasKoulutusvienti on kestävyys- ja ketteryyslaji (2.5.2017)laajentamallaWorldCat Identities0000 0001 0855 9405n86069603utb201588738523620927

          Which is better: GPT or RelGAN for text generation?2019 Community Moderator ElectionWhat is the difference between TextGAN and LM for text generation?GANs (generative adversarial networks) possible for text as well?Generator loss not decreasing- text to image synthesisChoosing a right algorithm for template-based text generationHow should I format input and output for text generation with LSTMsGumbel Softmax vs Vanilla Softmax for GAN trainingWhich neural network to choose for classification from text/speech?NLP text autoencoder that generates text in poetic meterWhat is the interpretation of the expectation notation in the GAN formulation?What is the difference between TextGAN and LM for text generation?How to prepare the data for text generation task

          Is this part of the description of the Archfey warlock's Misty Escape feature redundant?When is entropic ward considered “used”?How does the reaction timing work for Wrath of the Storm? Can it potentially prevent the damage from the triggering attack?Does the Dark Arts Archlich warlock patrons's Arcane Invisibility activate every time you cast a level 1+ spell?When attacking while invisible, when exactly does invisibility break?Can I cast Hellish Rebuke on my turn?Do I have to “pre-cast” a reaction spell in order for it to be triggered?What happens if a Player Misty Escapes into an Invisible CreatureCan a reaction interrupt multiattack?Does the Fiend-patron warlock's Hurl Through Hell feature dispel effects that require the target to be on the same plane as the caster?What are you allowed to do while using the Warlock's Eldritch Master feature?