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

          Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

          Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

          Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?