Code Monkey home page Code Monkey logo

centerloss_caffe_mnist's People

Contributors

hsmyy avatar xiaoyuansouti 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

centerloss_caffe_mnist's Issues

请问一个关于反向计算的问题

在反向计算中,请问代码中为什么只是将center loss 传回的diff直接copy进bottom的diff中,论文中不应该是加上softmax的梯度一起传回bottom的diff吗?

您的反向传播代码:

Dtype *out = bottom[0]->mutable_cpu_diff();
caffe_copy(num * channels, center_loss_.cpu_data(), out);
这里copy回去了。

关于公式中的参数lamda

center_loss的公式中有一个参数lamda,即lamda/2sum(f(x,c)),请问,参数lamda对应于代码中那个变量呢?
您代码中似乎没有出现这个参数哦.
loss += caffe_cpu_dot(channels, center_loss_.cpu_data() + i * channels,
center_loss_.cpu_data() + i
channels) / Dtype(2.0) / static_cast(num)
另外,这个参数应该设置为多少呢,谢谢

center loss 很小

我也实现了一版caffe的centerloss 发现centerloss特别小,迭代几论以后就没了的样子,调lamda也一样,你出现过么

Initialization of the center value?

Hi,
这些中心值的初始化是怎么赋值的?(论文上说每次迭代算特征的平均值从而更新Cyi,但好像没说初始化)
3Q!

c的更新问题

请问你在调试过程中有出现,delta_c数量级为10^(-15)左右,几乎为0,c几乎不被更新,只依赖于第一个batch计算的类中心这种情况吗?谢谢!

feat.log 和center_feat.log

你好,感谢分享,小弟有一个小疑问。
我目前的理解是feat.log是原来不加centerloss后跑出的ip1特征
而center_feat.log是加了center_loss后跑出的ip1的特征。
然后predict是用生成的model来得到ip1的特征,但是看代码好像只是print了并没有保存成log文件,这里需要自己添加代码完成日志的保存么。谢谢啦

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.