{"action":"created","issue":{"url":"https://api.github.com/repos/thinktopic/cortex/issues/52","repository_url":"https://api.github.com/repos/thinktopic/cortex","labels_url":"https://api.github.com/repos/thinktopic/cortex/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/thinktopic/cortex/issues/52/comments","events_url":"https://api.github.com/repos/thinktopic/cortex/issues/52/events","html_url":"https://github.com/thinktopic/cortex/issues/52","id":195035728,"number":52,"title":"CUDA Out of Memory Error when building description using first pair of vgg16 conv layers and weights","user":{"login":"poojaramesh","id":14980463,"avatar_url":"https://avatars.githubusercontent.com/u/14980463?v=3","gravatar_id":"","url":"https://api.github.com/users/poojaramesh","html_url":"https://github.com/poojaramesh","followers_url":"https://api.github.com/users/poojaramesh/followers","following_url":"https://api.github.com/users/poojaramesh/following{/other_user}","gists_url":"https://api.github.com/users/poojaramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/poojaramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poojaramesh/subscriptions","organizations_url":"https://api.github.com/users/poojaramesh/orgs","repos_url":"https://api.github.com/users/poojaramesh/repos","events_url":"https://api.github.com/users/poojaramesh/events{/privacy}","received_events_url":"https://api.github.com/users/poojaramesh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-12T17:29:50Z","updated_at":"2016-12-12T18:05:16Z","closed_at":"2016-12-12T18:05:16Z","body":"I am trying to build a network description using the first couple of vgg16 conv+pooling layers, loading pre-trained weights and setting learning attenuation to 0. This generates an out of memory error.\r\n\r\nThe error can be reproduced as such:\r\n\r\n(def keras-model\r\n  (memoize\r\n    #(keras/load-sidecar-and-verify \"/mnt/thinkdrive/cortex-debug/keras/vgg_configuration.json\"\r\n                                    \"/mnt/thinkdrive/cortex-debug//keras/vgg_16_weights.h5\"\r\n                                    \"/mnt/thinkdrive/cortex-debug/keras/vgg_16_output.h5\")))\r\n\r\n;; Reading from pre-trained keras model\r\n(defn create-bottom-layers\r\n  [num-keras-layers]\r\n  (concat (desc/input image-size image-size channels)\r\n          (->> (keras-model)\r\n            (drop 1) ;;drop input layer\r\n            (take num-keras-layers))))\r\n\r\n(defn create-top-layers\r\n  [num-classes]\r\n  [(desc/dropout 0.5)\r\n   (desc/linear->relu 128)\r\n   (desc/linear->softmax num-classes)])\r\n\r\n;; Combining FC layers with lower level pre-trained keras layers\r\n(defn create-complete-description\r\n  [num-keras-layers num-classes]\r\n  (let [bottom-layers (->> (create-bottom-layers num-keras-layers)\r\n                        (mapv #(assoc % :learning-attenuation 0.0)))]\r\n    (concat bottom-layers (create-top-layers num-classes))))\r\n\r\nIf you call (create-complete-description 5 2), this will give you a portion of the vgg-net description that contains a set of conv (x2) + pooling layers."},"comment":{"url":"https://api.github.com/repos/thinktopic/cortex/issues/comments/266504610","html_url":"https://github.com/thinktopic/cortex/issues/52#issuecomment-266504610","issue_url":"https://api.github.com/repos/thinktopic/cortex/issues/52","id":266504610,"user":{"login":"poojaramesh","id":14980463,"avatar_url":"https://avatars.githubusercontent.com/u/14980463?v=3","gravatar_id":"","url":"https://api.github.com/users/poojaramesh","html_url":"https://github.com/poojaramesh","followers_url":"https://api.github.com/users/poojaramesh/followers","following_url":"https://api.github.com/users/poojaramesh/following{/other_user}","gists_url":"https://api.github.com/users/poojaramesh/gists{/gist_id}","starred_url":"https://api.github.com/users/poojaramesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poojaramesh/subscriptions","organizations_url":"https://api.github.com/users/poojaramesh/orgs","repos_url":"https://api.github.com/users/poojaramesh/repos","events_url":"https://api.github.com/users/poojaramesh/events{/privacy}","received_events_url":"https://api.github.com/users/poojaramesh/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T18:05:16Z","updated_at":"2016-12-12T18:05:16Z","body":"This could just purely be a resource issue with not enough memory for a big network. I will close the issue for now until I can prove otherwise."}}
{"actor":{"display_login":"poojaramesh"}}