{"action":"created","issue":{"url":"https://api.github.com/repos/fvisin/reseg/issues/1","repository_url":"https://api.github.com/repos/fvisin/reseg","labels_url":"https://api.github.com/repos/fvisin/reseg/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fvisin/reseg/issues/1/comments","events_url":"https://api.github.com/repos/fvisin/reseg/issues/1/events","html_url":"https://github.com/fvisin/reseg/issues/1","id":163140470,"number":1,"title":"Unable to run the code on CamVid dataset using evaluate_camvid.py","user":{"login":"ice-pice","id":4324025,"avatar_url":"https://avatars.githubusercontent.com/u/4324025?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-pice","html_url":"https://github.com/ice-pice","followers_url":"https://api.github.com/users/ice-pice/followers","following_url":"https://api.github.com/users/ice-pice/following{/other_user}","gists_url":"https://api.github.com/users/ice-pice/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-pice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-pice/subscriptions","organizations_url":"https://api.github.com/users/ice-pice/orgs","repos_url":"https://api.github.com/users/ice-pice/repos","events_url":"https://api.github.com/users/ice-pice/events{/privacy}","received_events_url":"https://api.github.com/users/ice-pice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T11:13:34Z","updated_at":"2016-07-01T06:29:48Z","closed_at":null,"body":"Hi,\r\nI am trying to run the demo evaluate_camvid.py code and I am fairly new to Theano and Lasagne. I get the following error (copying the whole log to explain after what steps the error is popping):\r\n\r\n> Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled, cuDNN 4007)\r\n> 5|True|RGB|None|True|None| |True|(360, 480)|False|False|False|conv3_3|()|()|GlorotUniform , Constant 0.0|rectify|[100, 100]|([1, 1], [1, 1])|(True, True)|GRULayer| |Constant 0.0|0|Gate Gate Gate Constant 0.0|grad|[50, 50]|[(2, 2), (2, 2)]|[(2, 2), (2, 2)]|GlorotUniform, Constant 0.0|rectify|None|None|False|False| |False| |adadelta|None|None,None,None,None|0.0|0.0|500|5000|100|0| | | | | ||\r\n> Loading data ...\r\n> Processing Camvid SegNet train dataset...\r\n> Loading images...\r\n> Loading masks...\r\n> Processing Camvid SegNet valid dataset...\r\n> Loading images...\r\n> Loading masks...\r\n> Processing Camvid SegNet test dataset...\r\n> Loading images...\r\n> Loading masks...\r\n> load_data Done!\r\n> Tot images:701 Train:367 Valid:101 Test:233\r\n> num of classes: 193\r\n> Building model ...\r\n> Input shape: (None, 720, 960, 3)\r\n> Vgg: After vgg: (None, 256, 180, 240)\r\n> ReNet: After 2 rnns 1x1@100 and 2 rnns 1x1@100: (None, 200, 180, 240)\r\n> ReNet: After 2 rnns 1x1@100 and 2 rnns 1x1@100: (None, 200, 180, 240)\r\n> Transposed conv: 2x2 (str 2x2) @ 50:(None, 50, 360, 480)\r\n> Transposed conv: 2x2 (str 2x2) @ 50:(None, 50, 720, 960)\r\n> Starting training...\r\n> Epoch 0/5000 Up 0 Cost 0.000000, DD 0.000000, UD 0.000000 0                                                                                                                                                                                  Traceback (most recent call last):\r\n>   File \"evaluate_camvid.py\", line 241, in <module>\r\n>     'reload': False\r\n>   File \"evaluate_camvid.py\", line 110, in main\r\n>     reload_=params['reload']\r\n>   File \"/home/exx/diggy/reseg/reseg.py\", line 870, in train\r\n>     class_balance_w)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/Theano-0.9.0.dev1-py2.7.egg/theano/compile/function_module.py\", line 875, in __call__\r\n>     storage_map=getattr(self.fn, 'storage_map', None))\r\n>   File \"/usr/local/lib/python2.7/dist-packages/Theano-0.9.0.dev1-py2.7.egg/theano/gof/link.py\", line 325, in raise_with_op\r\n>     reraise(exc_type, exc_value, exc_trace)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/Theano-0.9.0.dev1-py2.7.egg/theano/compile/function_module.py\", line 862, in __call__\r\n>     self.fn() if output_subset is None else\\\r\n> ValueError: dimension mismatch in x,y_idx arguments\r\n> Apply node that caused the error: GpuCrossentropySoftmaxArgmax1HotWithBias(GpuReshape{2}.0, GpuElemwise{second,no_inplace}.0, GpuFromHost.0)\r\n> Toposort index: 820\r\n> Inputs types: [CudaNdarrayType(float32, matrix), CudaNdarrayType(float32, vector), CudaNdarrayType(float32, vector)]\r\n> Inputs shapes: [(3456000, 193), (193,), (10368000,)]\r\n> Inputs strides: [(193, 1), (1,), (1,)]\r\n> Inputs values: ['not shown', 'not shown', 'not shown']\r\n> Outputs clients: [[GpuElemwise{mul,no_inplace}(GpuCrossentropySoftmaxArgmax1HotWithBias.0, GpuFromHost.0)], [GpuCrossentropySoftmax1HotWithBiasDx(GpuElemwise{Mul}[(0, 0)].0, GpuCrossentropySoftmaxArgmax1HotWithBias.1, GpuFromHost.0)], []]\r\n\r\nI tried running using different installations of Theano and Lasagne wondering if that was the issue but to no use. My directory structure :\r\n![image](https://cloud.githubusercontent.com/assets/4324025/16486460/77307660-3ee2-11e6-838c-8dc1eba37aec.png)\r\n\r\n\r\nIf anyone else has faced this problem, kindly help!!\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/fvisin/reseg/issues/comments/229864915","html_url":"https://github.com/fvisin/reseg/issues/1#issuecomment-229864915","issue_url":"https://api.github.com/repos/fvisin/reseg/issues/1","id":229864915,"user":{"login":"ice-pice","id":4324025,"avatar_url":"https://avatars.githubusercontent.com/u/4324025?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-pice","html_url":"https://github.com/ice-pice","followers_url":"https://api.github.com/users/ice-pice/followers","following_url":"https://api.github.com/users/ice-pice/following{/other_user}","gists_url":"https://api.github.com/users/ice-pice/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-pice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-pice/subscriptions","organizations_url":"https://api.github.com/users/ice-pice/orgs","repos_url":"https://api.github.com/users/ice-pice/repos","events_url":"https://api.github.com/users/ice-pice/events{/privacy}","received_events_url":"https://api.github.com/users/ice-pice/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T06:29:48Z","updated_at":"2016-07-01T06:29:48Z","body":"Hi,\r\n\r\nThanks for your reply!\r\nI have resized the images in all the data folders to 480X360, so now the log displays:\r\n\r\n> Building model ...\r\n> Input shape: (None, 360, 480, 3)\r\n> Vgg: After vgg: (None, 256, 90, 120)\r\n\r\nBut this follows the same error as I have written above:\r\n\r\n>   File \"/usr/local/lib/python2.7/dist-packages/Theano-0.9.0.dev1-py2.7.egg/theano/compile/function_module.py\", line 862, in __call__\r\n>     self.fn() if output_subset is None else\\\r\n> ValueError: dimension mismatch in x,y_idx arguments\r\n\r\nI also want to specify that I have changed \"reseg.py: Line 824\" to :\r\n>    metrics_wid = VariableText( 'Cost %(cost)f, DD %(DD)f, UD %(UD)f %(shape)s',\r\n>         {'cost': 0, 'DD': 0, 'UD': 0, 'shape': 0})\r\n\r\nas it was giving me this error:\r\n\r\n> Error while formatting 'Cost %(cost)f, DD %(DD)f, UD %(UD)f %(shape)s'\r\n> {'DD': None, 'UD': None, 'cost': None, 'shape': None}\r\n> TypeError: float argument required, not NoneType\r\n\r\nWhat do you think I am missing?"}}
{"actor":{"display_login":"ice-pice"}}