{"action":"created","issue":{"url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/8","labels_url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/8/comments","events_url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/8/events","html_url":"https://github.com/ryankennedyio/deep-dream-generator/issues/8","id":94382579,"number":8,"title":"ValueError: operands could not be broadcast together with shapes (4,602,915) (3,1,1) ","user":{"login":"julien2512","id":838473,"avatar_url":"https://avatars.githubusercontent.com/u/838473?v=3","gravatar_id":"","url":"https://api.github.com/users/julien2512","html_url":"https://github.com/julien2512","followers_url":"https://api.github.com/users/julien2512/followers","following_url":"https://api.github.com/users/julien2512/following{/other_user}","gists_url":"https://api.github.com/users/julien2512/gists{/gist_id}","starred_url":"https://api.github.com/users/julien2512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien2512/subscriptions","organizations_url":"https://api.github.com/users/julien2512/orgs","repos_url":"https://api.github.com/users/julien2512/repos","events_url":"https://api.github.com/users/julien2512/events{/privacy}","received_events_url":"https://api.github.com/users/julien2512/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T20:11:41Z","updated_at":"2015-07-11T04:19:20Z","closed_at":"2015-07-10T21:02:17Z","body":"In [6]:\r\n\r\n_=deepdream(net, img)\r\n\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-6-d4150d0aed19> in <module>()\r\n----> 1 _=deepdream(net, img)\r\n\r\n<ipython-input-4-975ec2ad7030> in deepdream(net, base_img, iter_n, octave_n, octave_scale, end, clip, **step_params)\r\n      1 def deepdream(net, base_img, iter_n=10, octave_n=4, octave_scale=1.4, end='inception_4c/output', clip=True, **step_params):\r\n      2     # prepare base images for all octaves\r\n----> 3     octaves = [preprocess(net, base_img)]\r\n      4     for i in xrange(octave_n-1):\r\n      5         octaves.append(nd.zoom(octaves[-1], (1, 1.0/octave_scale,1.0/octave_scale), order=1))\r\n\r\n<ipython-input-2-85f9bdb66a68> in preprocess(net, img)\r\n     16 # a couple of utility functions for converting to and from Caffe's input image layout\r\n     17 def preprocess(net, img):\r\n---> 18     return np.float32(np.rollaxis(img, 2)[::-1]) - net.transformer.mean['data']\r\n     19 def deprocess(net, img):\r\n     20     return np.dstack((img + net.transformer.mean['data'])[::-1])\r\n\r\nValueError: operands could not be broadcast together with shapes (4,602,915) (3,1,1) \r\n\r\nI am trying to figure what to do !"},"comment":{"url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/comments/120571367","html_url":"https://github.com/ryankennedyio/deep-dream-generator/issues/8#issuecomment-120571367","issue_url":"https://api.github.com/repos/ryankennedyio/deep-dream-generator/issues/8","id":120571367,"user":{"login":"julien2512","id":838473,"avatar_url":"https://avatars.githubusercontent.com/u/838473?v=3","gravatar_id":"","url":"https://api.github.com/users/julien2512","html_url":"https://github.com/julien2512","followers_url":"https://api.github.com/users/julien2512/followers","following_url":"https://api.github.com/users/julien2512/following{/other_user}","gists_url":"https://api.github.com/users/julien2512/gists{/gist_id}","starred_url":"https://api.github.com/users/julien2512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien2512/subscriptions","organizations_url":"https://api.github.com/users/julien2512/orgs","repos_url":"https://api.github.com/users/julien2512/repos","events_url":"https://api.github.com/users/julien2512/events{/privacy}","received_events_url":"https://api.github.com/users/julien2512/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T04:19:20Z","updated_at":"2015-07-11T04:19:20Z","body":"I got it, It was the image sample to be changed."}}