Git Product home page Git Product logo

tensorflow_center_loss's People

Contributors

encodets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tensorflow_center_loss's Issues

About center op

whats the difference between training trainable centers jointly with major losses and update untrainable centers independently? ? I think, in joint way, the trainable centers will be updated as the independent way except the latter can have a different learning rate.

confused with gradients of center loss

  1. diff = diff / tf.cast((1 + appear_times), tf.float32)
  2. diff = alpha * diff
  3. centers_update_op = tf.scatter_sub(centers, labels, diff)
    您好,有个疑问,第一行代码,根据论文中给的公式应该是 diff = (diff * appear_times)/ tf.cast((1 + appear_times), tf.float32)?

如何理解串行全连接

image
在原有网络上添加center loss 更改了原有网络结构,因为添加了hidden_dim == center_dim的全连接层。
改成并行的两个全连接:
x = slim.flatten(x, scope='flatten')
feature = slim.fully_connected(x, num_outputs=2, activation_fn=None, scope='fc1')
x = slim.fully_connected(x, num_outputs=10, activation_fn=None, scope='fc2')
这样不会改变原结构,只是加了一个分支训练。求大神指正。。。

error: Res Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zerohape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero

InvalidArgumentError (see above for traceback): Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node flatten/flatten/Reshape (defined at center_main+model.py:80) ]]
[[node acc/Mean (defined at center_main+model.py:101) ]]

center loss 计算问题

在每个batch中计算loss的时候,代码中是以每个batch中类别的中心。
按照paper中,应该是以当前经过网络的所有数据的中心计算吧,即centers_update_op
代码中的 centers_update_op 有什么用?看到只是一个返回值

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.