Giter VIP home page Giter VIP logo

Comments (8)

Zehaos avatar Zehaos commented on May 28, 2024

A known bug:
slim.separable_convolution2d used mistakenly

I am working on this.

from mobilenet.

Zehaos avatar Zehaos commented on May 28, 2024

I have used tf.nn.depthwise_conv2d instead. The model size should be right now.

from mobilenet.

tbornt avatar tbornt commented on May 28, 2024

I set num_outputs=None in the separable_convolution2d. Does it work the same way as depthwise_conv2d?

from mobilenet.

Zehaos avatar Zehaos commented on May 28, 2024

Look good! Thanks.
I will train the first model this weekend.

from mobilenet.

kwotsin avatar kwotsin commented on May 28, 2024

@Zehaos Would it be the same if you replaced your function for depthwise separable conv2d with the official function from tensorflow in https://github.com/tensorflow/tensorflow/blob/08cb0ba5431ef2508c6ca63c498023a84f7b4a18/tensorflow/python/layers/convolutional.py#L870 ?

It includes the depth_multiplier in the function as well, which could make the code more concise. Did you see any difference from implementing this official function instead?

from mobilenet.

Zehaos avatar Zehaos commented on May 28, 2024

@kwotsin According to tf doc,I think 'tf.nn.separable_conv2d()' combine depthwise conv and pointwise conv together, whithout bn nor relu between them, that is the problem.

from mobilenet.

kwotsin avatar kwotsin commented on May 28, 2024

@Zehaos Hmm do you think it is possible to use slim.batch_norm as the normalizer_fn argument in slim.conv2d or slim.separable_convolution2d to use the batch norm instead? Relu is included by default in those 2 slim functions, and go by conv-->batch_norm-->relu, so I think it might work.

from mobilenet.

Zehaos avatar Zehaos commented on May 28, 2024

@kwotsin yes, you are right. tf is so fexiable.

from mobilenet.

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.