{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2407","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2407/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2407/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2407/events","html_url":"https://github.com/BVLC/caffe/issues/2407","id":72885081,"number":2407,"title":"Training for a multi label loss using lmdb ","user":{"login":"sukritshankar","id":8617397,"avatar_url":"https://avatars.githubusercontent.com/u/8617397?v=3","gravatar_id":"","url":"https://api.github.com/users/sukritshankar","html_url":"https://github.com/sukritshankar","followers_url":"https://api.github.com/users/sukritshankar/followers","following_url":"https://api.github.com/users/sukritshankar/following{/other_user}","gists_url":"https://api.github.com/users/sukritshankar/gists{/gist_id}","starred_url":"https://api.github.com/users/sukritshankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukritshankar/subscriptions","organizations_url":"https://api.github.com/users/sukritshankar/orgs","repos_url":"https://api.github.com/users/sukritshankar/repos","events_url":"https://api.github.com/users/sukritshankar/events{/privacy}","received_events_url":"https://api.github.com/users/sukritshankar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2015-05-03T23:52:11Z","updated_at":"2016-11-11T18:26:34Z","closed_at":"2015-05-04T20:40:10Z","body":"I wish to train AlexNet with Cross Entropy Loss, for which every input has multiple label probabilities. Till now, I have been doing this using an HDF5 layer. However, one has to do all sorts of manual pre processing and access to this layer is around twice as slow as that to lmdb. \n\nIn view of the above, I wish to know how can one train for a multi label loss using an lmdb layer in caffe. More precisely, what should be done in train.txt so that one can specify multiple labels for a given image ? \n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/260022373","html_url":"https://github.com/BVLC/caffe/issues/2407#issuecomment-260022373","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2407","id":260022373,"user":{"login":"jerpint","id":18450628,"avatar_url":"https://avatars.githubusercontent.com/u/18450628?v=3","gravatar_id":"","url":"https://api.github.com/users/jerpint","html_url":"https://github.com/jerpint","followers_url":"https://api.github.com/users/jerpint/followers","following_url":"https://api.github.com/users/jerpint/following{/other_user}","gists_url":"https://api.github.com/users/jerpint/gists{/gist_id}","starred_url":"https://api.github.com/users/jerpint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerpint/subscriptions","organizations_url":"https://api.github.com/users/jerpint/orgs","repos_url":"https://api.github.com/users/jerpint/repos","events_url":"https://api.github.com/users/jerpint/events{/privacy}","received_events_url":"https://api.github.com/users/jerpint/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T18:26:34Z","updated_at":"2016-11-11T18:26:34Z","body":"@xcmax why do you say this? look at the line :  \r\n\r\n`im_dat = caffe.io.array_to_datum(np.array(label_).astype(float).reshape(1,1,6))\r\n`               \r\n\r\nthis is the line that embeds each label, M of them, for a total of N samples, hence the Nx1x1xM"}}
{"actor":{"display_login":"jerpint"}}