{"action":"closed","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3013","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3013/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3013/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3013/events","html_url":"https://github.com/BVLC/caffe/issues/3013","id":104463737,"number":3013,"title":"Question about MemoryData Layer and Solver inteface.","user":{"login":"ahsaniqbal","id":1744500,"avatar_url":"https://avatars.githubusercontent.com/u/1744500?v=3","gravatar_id":"","url":"https://api.github.com/users/ahsaniqbal","html_url":"https://github.com/ahsaniqbal","followers_url":"https://api.github.com/users/ahsaniqbal/followers","following_url":"https://api.github.com/users/ahsaniqbal/following{/other_user}","gists_url":"https://api.github.com/users/ahsaniqbal/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsaniqbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsaniqbal/subscriptions","organizations_url":"https://api.github.com/users/ahsaniqbal/orgs","repos_url":"https://api.github.com/users/ahsaniqbal/repos","events_url":"https://api.github.com/users/ahsaniqbal/events{/privacy}","received_events_url":"https://api.github.com/users/ahsaniqbal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T11:53:57Z","updated_at":"2015-09-03T04:39:41Z","closed_at":"2015-09-03T04:39:41Z","body":"Hi,\r\n\r\nI am trying to train a network but rather using lmdb or leveldb, I am feeding data to my network on the fly. So I am following procedure as outlined below\r\n\r\n1. My data is loaded in Memory Data Layer.\r\n2. I create a mini badge using python script.\r\n3. Set data and label as solver.net.set_input_arrays(batch,labels)\r\n4. After that I call solver.step(1)\r\n\r\nhere solver is of type SGDSolver\r\nNow my question is what is difference between solver.solve and solver.step. 2ndly \r\nthis approach doesn't let me have a memory data layer for test network. Is there any workarround for that?\r\n\r\nMy solver.prototxt looks like \r\n\r\nnet: \"/path/to/train_val.prototxt\"\r\n#test_iter: 1000\r\n#test_interval: 1000\r\nbase_lr: 0.01\r\nlr_policy: \"step\"\r\ngamma: 0.1\r\nstepsize: 100000\r\ndisplay: 20\r\nmax_iter: 450000\r\nmomentum: 0.9\r\nweight_decay: 0.0005\r\nsnapshot: 10000\r\nsnapshot_prefix: \"/path/to/temporal_net_train\"\r\nsolver_mode: GPU\r\n\r\nWith my approach every 20th iteration network displays some output loss etc. And somehow loss stays constant over some numbert of iterations, what could be the reason for that.\r\n\r\nThanks\r\nAhsan"}}