{"action":"created","issue":{"url":"https://api.github.com/repos/asousa/DepthPrediction/issues/2","repository_url":"https://api.github.com/repos/asousa/DepthPrediction","labels_url":"https://api.github.com/repos/asousa/DepthPrediction/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/asousa/DepthPrediction/issues/2/comments","events_url":"https://api.github.com/repos/asousa/DepthPrediction/issues/2/events","html_url":"https://github.com/asousa/DepthPrediction/issues/2","id":158904371,"number":2,"title":"Can't get code to work","user":{"login":"thomaspreece","id":2067021,"avatar_url":"https://avatars.githubusercontent.com/u/2067021?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaspreece","html_url":"https://github.com/thomaspreece","followers_url":"https://api.github.com/users/thomaspreece/followers","following_url":"https://api.github.com/users/thomaspreece/following{/other_user}","gists_url":"https://api.github.com/users/thomaspreece/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaspreece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaspreece/subscriptions","organizations_url":"https://api.github.com/users/thomaspreece/orgs","repos_url":"https://api.github.com/users/thomaspreece/repos","events_url":"https://api.github.com/users/thomaspreece/events{/privacy}","received_events_url":"https://api.github.com/users/thomaspreece/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-07T11:54:09Z","updated_at":"2016-06-07T20:37:08Z","closed_at":null,"body":"Hi,\r\nI'm trying to get the code to run but it appears that there are missing files. I cannot find any of the caffe model files needed and I don't understand the training code you have used. Could I get the model files and do you possibly have some slightly more detailed information on how to use the code?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/asousa/DepthPrediction/issues/comments/224406292","html_url":"https://github.com/asousa/DepthPrediction/issues/2#issuecomment-224406292","issue_url":"https://api.github.com/repos/asousa/DepthPrediction/issues/2","id":224406292,"user":{"login":"asousa","id":3578476,"avatar_url":"https://avatars.githubusercontent.com/u/3578476?v=3","gravatar_id":"","url":"https://api.github.com/users/asousa","html_url":"https://github.com/asousa","followers_url":"https://api.github.com/users/asousa/followers","following_url":"https://api.github.com/users/asousa/following{/other_user}","gists_url":"https://api.github.com/users/asousa/gists{/gist_id}","starred_url":"https://api.github.com/users/asousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asousa/subscriptions","organizations_url":"https://api.github.com/users/asousa/orgs","repos_url":"https://api.github.com/users/asousa/repos","events_url":"https://api.github.com/users/asousa/events{/privacy}","received_events_url":"https://api.github.com/users/asousa/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T20:37:08Z","updated_at":"2016-06-07T20:37:08Z","body":"Hi Thomas,\r\n\r\nI wish I understood it either! That project was very rushed, and we struggled a lot with getting Caffe to cooperate. By the time we turned it in we were *almost* getting decent results.\r\n\r\nI’m pretty sure we were using the Places205 CNN pre-trained model (http://places.csail.mit.edu/downloadCNN.html).\r\n\r\nIt’s a little obnoxious, but the gist is that we called the caffe train methods from the command line and not from Python.\r\n\r\nTraining parameters are specified in whichever solver file you’re using (models/solver_softmax_dir.prototxt).\r\n\r\nSo to train, you run something like:\r\ncaffe train -solver <solver file> -weights <pre-trained file> -gpu 0\r\nThen to classify, you do something like the following in Python:\r\nDP = DepthPredictor()\r\nDP.load(model_file, pretrained_file, mean file)\r\npredicted_depth = DP.predict( input image )\r\n\r\nThe actual model you’re using is in models/udr*.prototxt… I did a few versions - euclidean or softmax loss, and with a few different inputs (either from an LMDB file or a directory of images). To run, there’s a different model file with the input block swapped out (*deploy.prototxt).\r\n\r\nHonestly, when we did this Caffe was a lot rougher than it is now - we wasted a lot of time when the syntax for the model files changed halfway through.\r\n\r\nOn a conceptual note, we never did come to terms with using the neural net to do regression on a continuous variable (depth) vs a classification of quantized values (is it in bin 1 or not, is it in bin 2 or not…).\r\n\r\nIf you haven’t read it already, check out the paper we were working from - http://arxiv.org/abs/1411.6387 - they got solid results but were using matconvnet. Our whole plan was to duplicate with caffe, and then tweak / train the last few layers.\r\n\r\nGood luck, hope this helps!\r\nAustin\r\n\r\nOn Jun 7, 2016, at 4:54 AM, Thomas Preece <notifications@github.com<mailto:notifications@github.com>> wrote:\r\n\r\n\r\nHi,\r\nI'm trying to get the code to run but it appears that there are missing files. I cannot find any of the caffe model files needed and I don't understand the training code you have used. Could I get the model files and do you possibly have some slightly more detailed information on how to use the code?\r\nThanks\r\n\r\n—\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly, view it on GitHub<https://github.com/asousa/DepthPrediction/issues/2>, or mute the thread<https://github.com/notifications/unsubscribe/ADaabMl4Isbv-loKOpLx3XqF91TnvyFYks5qJVvhgaJpZM4Iv1xj>.\r\n\r\n"}}
{"actor":{"display_login":"asousa"}}