{"action":"created","issue":{"url":"https://api.github.com/repos/NervanaSystems/neon/issues/142","labels_url":"https://api.github.com/repos/NervanaSystems/neon/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/NervanaSystems/neon/issues/142/comments","events_url":"https://api.github.com/repos/NervanaSystems/neon/issues/142/events","html_url":"https://github.com/NervanaSystems/neon/issues/142","id":118571315,"number":142,"title":"ImageLoader - AttributeError","user":{"login":"leovetter","id":2813359,"avatar_url":"https://avatars.githubusercontent.com/u/2813359?v=3","gravatar_id":"","url":"https://api.github.com/users/leovetter","html_url":"https://github.com/leovetter","followers_url":"https://api.github.com/users/leovetter/followers","following_url":"https://api.github.com/users/leovetter/following{/other_user}","gists_url":"https://api.github.com/users/leovetter/gists{/gist_id}","starred_url":"https://api.github.com/users/leovetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leovetter/subscriptions","organizations_url":"https://api.github.com/users/leovetter/orgs","repos_url":"https://api.github.com/users/leovetter/repos","events_url":"https://api.github.com/users/leovetter/events{/privacy}","received_events_url":"https://api.github.com/users/leovetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T10:00:49Z","updated_at":"2015-11-24T14:54:56Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI recently installed neon to train neural network on the ImageNet dataset. I followed the instruction given in the documentation so I downloaded the tar files for the imagenet datasets (training / validation and testing sets) then I use the following command to convert raw images into binaries :\r\n\r\n`python neon/util/batch_writer.py  --data_dir /usr/local/data/tmp\r\n--image_dir=/usr/local/data/I1K/imagenet_orig\r\n--set_type=i1k`\r\n\r\nBut when I want to load my training dataset using `train = ImageLoader(repo_dir=args.data_dir, inner_size=224, set_name='train')` I get the following Traceback :\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/naabuser/naabVE/local/lib/python2.7/site-packages/neon-1.1.2-py2.7.egg/neon/data/imageloader.py\", line 37, in __init__\r\n    rgb, multiview, set_name, subset_pct, macro)\r\n  File \"/home/naabuser/naabVE/local/lib/python2.7/site-packages/neon-1.1.2-py2.7.egg/neon/data/imageloader.py\", line 86, in configure\r\n    self.minibatch_size = self.be.bsz\r\nAttributeError: 'NoneType' object has no attribute 'bsz'\r\n``` \r\n\r\nI don't get what is the problem ? Any help would be appreciated. Thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/NervanaSystems/neon/issues/comments/159292074","html_url":"https://github.com/NervanaSystems/neon/issues/142#issuecomment-159292074","issue_url":"https://api.github.com/repos/NervanaSystems/neon/issues/142","id":159292074,"user":{"login":"nervetumer","id":12916726,"avatar_url":"https://avatars.githubusercontent.com/u/12916726?v=3","gravatar_id":"","url":"https://api.github.com/users/nervetumer","html_url":"https://github.com/nervetumer","followers_url":"https://api.github.com/users/nervetumer/followers","following_url":"https://api.github.com/users/nervetumer/following{/other_user}","gists_url":"https://api.github.com/users/nervetumer/gists{/gist_id}","starred_url":"https://api.github.com/users/nervetumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nervetumer/subscriptions","organizations_url":"https://api.github.com/users/nervetumer/orgs","repos_url":"https://api.github.com/users/nervetumer/repos","events_url":"https://api.github.com/users/nervetumer/events{/privacy}","received_events_url":"https://api.github.com/users/nervetumer/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T14:54:56Z","updated_at":"2015-11-24T14:54:56Z","body":"You need to set up a backend before setting up the image loader.  In our examples this is done behind the scenes in the NeonArgparser based on the command line options given (or the defaults).  \r\n\r\nTry:\r\n```\r\nfrom neon.backends import gen_backend\r\ngen_backend(backend='cpu', batch_size=128)\r\n```\r\n\r\nNote there are many backend options please see the docs.  For examples, if you have a compatible GPU you can make a gnu backend by changing backend='cpu' to backend='gnu'."}}