Caffe Iteration loss versus Train Net loss

戏子无情 提交于 2019-12-09 15:55:47

问题


I'm using caffe to train a CNN with a Euclidean loss layer at the bottom, and my solver.prototxt file configured to display every 100 iterations. I see something like this,

Iteration 4400, loss = 0
I0805 11:10:16.976716 1936085760 solver.cpp:229]     Train net output #0: loss = 2.92436 (* 1 = 2.92436 loss)

I'm confused as to what the difference between the Iteration loss and Train net loss is. Usually the iteration loss is very small (around 0) and the Train net output loss is a bit larger. Can somebody please clarify?


回答1:


Evan Shelhamer already gave his answer on https://groups.google.com/forum/#!topic/caffe-users/WEhQ92s9Vus.

As he pointe out, The net output #k result is the output of the net for that particular iteration / batch while the Iteration T, loss = X output is smoothed across iterations according to the average_loss field.



来源:https://stackoverflow.com/questions/31840488/caffe-iteration-loss-versus-train-net-loss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!