Code Monkey home page Code Monkey logo

Comments (2)

adeshpande3 avatar adeshpande3 commented on May 28, 2024

You'll need to replace the lines where we call the function mnist.train.next_batch. For example, in the line

real_image_batch = mnist.train.next_batch(batch_size)[0].reshape([batch_size, 28, 28, 1])

you'll need to create your own python function that basically returns a random subset of your dataset. For example, if you have 25,000 images that are each 28x28, you should have a 25000 x 28 x 28 matrix that represents those examples. You'll have to create a function that selects a random subset of those. The shape of the matrix you return will be batch_size x 28 x 28.

from generative-adversarial-networks.

jonbruner avatar jonbruner commented on May 28, 2024

Thanks Adit!

from generative-adversarial-networks.

Related Issues (8)

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.