{"action":"created","issue":{"url":"https://api.github.com/repos/facebookresearch/deepmask/issues/73","repository_url":"https://api.github.com/repos/facebookresearch/deepmask","labels_url":"https://api.github.com/repos/facebookresearch/deepmask/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/facebookresearch/deepmask/issues/73/comments","events_url":"https://api.github.com/repos/facebookresearch/deepmask/issues/73/events","html_url":"https://github.com/facebookresearch/deepmask/issues/73","id":195658847,"number":73,"title":"Training My Own Dataset but Getting The Following Error","user":{"login":"Aggr0vatE","id":10102733,"avatar_url":"https://avatars.githubusercontent.com/u/10102733?v=3","gravatar_id":"","url":"https://api.github.com/users/Aggr0vatE","html_url":"https://github.com/Aggr0vatE","followers_url":"https://api.github.com/users/Aggr0vatE/followers","following_url":"https://api.github.com/users/Aggr0vatE/following{/other_user}","gists_url":"https://api.github.com/users/Aggr0vatE/gists{/gist_id}","starred_url":"https://api.github.com/users/Aggr0vatE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aggr0vatE/subscriptions","organizations_url":"https://api.github.com/users/Aggr0vatE/orgs","repos_url":"https://api.github.com/users/Aggr0vatE/repos","events_url":"https://api.github.com/users/Aggr0vatE/events{/privacy}","received_events_url":"https://api.github.com/users/Aggr0vatE/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-14T22:04:24Z","updated_at":"2016-12-15T17:28:04Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI am currently training my own dataset for deepmask but I am getting this error when running th train.lua\r\n```\r\n\r\n-- ignore option rundir\t\r\n-- ignore option dm\t\r\n-- ignore option reload\t\r\n-- ignore option gpu\t\r\n-- ignore option datadir\t\r\n| running in directory /test/exps/deepmask/exp\t\r\n| number of paramaters trunk: 15198016\t\r\n| number of paramaters mask branch: 1608768\t\r\n| number of paramaters score branch: 526337\t\r\n| number of paramaters total: 17333121\t\r\nconvert: data//annotations/instances_train2014.json --> .t7 [please be patient]\r\nconvert: data//annotations/instances_train2014.json --> .t7 [please be patient]\r\n/Users/obra/torch/install/bin/luajit: /Users/obra/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 2 callback] /Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:142: Expected value but found T_COMMA at character 1\r\nstack traceback:\r\n\t[C]: in function 'decode'\r\n\t/Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:142: in function '__convert'\r\n\t/Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:128: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'CocoApi'\r\n\t/test/DataSampler.lua:25: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'DataSampler'\r\n\t/test/DataLoader.lua:36: in function </test/DataLoader.lua:30>\r\n\t[C]: in function 'xpcall'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/queue.lua:65: in function </Users/obra/torch/install/share/lua/5.1/threads/queue.lua:41>\r\n\t[C]: in function 'pcall'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'\r\n\t[string \"  local Queue = require 'threads.queue'...\"]:13: in main chunk\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:183: in function 'dojob'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:264: in function 'synchronize'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:142: in function 'specific'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:125: in function 'Threads'\r\n\t/test/DataLoader.lua:40: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'DataLoader'\r\n\t/test/DataLoader.lua:21: in function 'create'\r\n\ttrain.lua:101: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...obra/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x010ff5b1f0\r\n```\r\n\r\nHelp is much appreciated!\r\n\r\nThanks.\r\n\r\nStephen"},"comment":{"url":"https://api.github.com/repos/facebookresearch/deepmask/issues/comments/267388691","html_url":"https://github.com/facebookresearch/deepmask/issues/73#issuecomment-267388691","issue_url":"https://api.github.com/repos/facebookresearch/deepmask/issues/73","id":267388691,"user":{"login":"Aggr0vatE","id":10102733,"avatar_url":"https://avatars.githubusercontent.com/u/10102733?v=3","gravatar_id":"","url":"https://api.github.com/users/Aggr0vatE","html_url":"https://github.com/Aggr0vatE","followers_url":"https://api.github.com/users/Aggr0vatE/followers","following_url":"https://api.github.com/users/Aggr0vatE/following{/other_user}","gists_url":"https://api.github.com/users/Aggr0vatE/gists{/gist_id}","starred_url":"https://api.github.com/users/Aggr0vatE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aggr0vatE/subscriptions","organizations_url":"https://api.github.com/users/Aggr0vatE/orgs","repos_url":"https://api.github.com/users/Aggr0vatE/repos","events_url":"https://api.github.com/users/Aggr0vatE/events{/privacy}","received_events_url":"https://api.github.com/users/Aggr0vatE/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:28:04Z","updated_at":"2016-12-15T17:28:04Z","body":"Thank you for the response.\r\n\r\nI realized that I indeed had a comma at the beginning of the json file. I have gotten rid of that and now i am getting the following error.\r\n\r\n```\r\n-- ignore option rundir\t\r\n-- ignore option dm\t\r\n-- ignore option reload\t\r\n-- ignore option gpu\t\r\n-- ignore option datadir\t\r\n| running in directory /test/exps/deepmask/exp\t\r\n| number of paramaters trunk: 15198016\t\r\n| number of paramaters mask branch: 1608768\t\r\n| number of paramaters score branch: 526337\t\r\n| number of paramaters total: 17333121\t\r\nconvert: data//annotations/instances_train2014.json --> .t7 [please be patient]\r\n/Users/obra/torch/install/bin/luajit: /Users/obra/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 1 callback] /Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:142: Expected the end but found T_COMMA at character 108\r\nstack traceback:\r\n\t[C]: in function 'decode'\r\n\t/Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:142: in function '__convert'\r\n\t/Users/obra/torch/install/share/lua/5.1/coco/CocoApi.lua:128: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'CocoApi'\r\n\t/test/DataSampler.lua:25: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'DataSampler'\r\n\t/test/DataLoader.lua:36: in function </test/DataLoader.lua:30>\r\n\t[C]: in function 'xpcall'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:234: in function 'callback'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/queue.lua:65: in function </Users/obra/torch/install/share/lua/5.1/threads/queue.lua:41>\r\n\t[C]: in function 'pcall'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/queue.lua:40: in function 'dojob'\r\n\t[string \"  local Queue = require 'threads.queue'...\"]:13: in main chunk\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:183: in function 'dojob'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:264: in function 'synchronize'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:142: in function 'specific'\r\n\t/Users/obra/torch/install/share/lua/5.1/threads/threads.lua:125: in function 'Threads'\r\n\t/test/DataLoader.lua:40: in function '__init'\r\n\t/Users/obra/torch/install/share/lua/5.1/torch/init.lua:91: in function </Users/obra/torch/install/share/lua/5.1/torch/init.lua:87>\r\n\t[C]: in function 'DataLoader'\r\n\t/test/DataLoader.lua:21: in function 'create'\r\n\ttrain.lua:101: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...obra/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x01037591f0\r\nconvert: data//annotations/instances_train2014.json --> .t7 [please be patient]\r\n```\r\n\r\nAlso, here is my json file.\r\n\r\n`{\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581940.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {“info\": \"grape vine\",\"images\": \"COCO_train2014_000000581941.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {“info\": \"grape vine\",\"images\": \"COCO_train2014_000000581942.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581943.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581944.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581945.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581946.jpg\",\"annotations\": \"grape vine\",\"license\": 0},  {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581947.jpg\",\"annotations\": \"grape vine\",\"license\": 0},{\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581948.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581949.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581950.jpg\",\"annotations\": \"grape vine\",\"license\": 0},{\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581951.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581952.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581953.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581954.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581955.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581956.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581957.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581958.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581959.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581960.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581961.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581962.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581963.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581964.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581965.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581966.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581967.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581968.jpg\",\"annotations\": \"grape vine\",\"license\": 0}, {\"info\": \"grape vine\",\"images\": \"COCO_train2014_000000581969.jpg\",\"annotations\": \"grape vine\",\"license\": 0}`"}}
{"actor":{"display_login":"Aggr0vatE"}}