Giter Club home page Giter Club logo

Comments (2)

taki0112 avatar taki0112 commented on July 28, 2024

This is because the image size is reduced each time it passes the layer.
At MNIST, I set nb_block = 2 so that the dense block and transition layer pass only two times.
(See ReadME)

The image size is halved from the transition layer (because, avg pooling)
It is also reduced by half in the first conv layer (7 * 7, stride = 2) (also max pooling too)

To summarize, the image size of MNIST is 28 * 28.
So,

28 -> 14(first conv) -> 6(max pool, The reason for not half is because of kernel size.) 
-> 3 (dense +transition) -> 1 (dense+transition) -> error !

Therefore, it is necessary to set the number of dense blocks according to the input image.

Thank you

from densenet-tensorflow.

taki0112 avatar taki0112 commented on July 28, 2024

I modified the code so that it can be run on MNIST.

from densenet-tensorflow.

Related Issues (20)

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.