{"action":"opened","issue":{"url":"https://api.github.com/repos/rbgirshick/py-faster-rcnn/issues/316","repository_url":"https://api.github.com/repos/rbgirshick/py-faster-rcnn","labels_url":"https://api.github.com/repos/rbgirshick/py-faster-rcnn/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/rbgirshick/py-faster-rcnn/issues/316/comments","events_url":"https://api.github.com/repos/rbgirshick/py-faster-rcnn/issues/316/events","html_url":"https://github.com/rbgirshick/py-faster-rcnn/issues/316","id":174053180,"number":316,"title":"Error Training on 4 classes","user":{"login":"Sai-Manikantha","id":16287192,"avatar_url":"https://avatars.githubusercontent.com/u/16287192?v=3","gravatar_id":"","url":"https://api.github.com/users/Sai-Manikantha","html_url":"https://github.com/Sai-Manikantha","followers_url":"https://api.github.com/users/Sai-Manikantha/followers","following_url":"https://api.github.com/users/Sai-Manikantha/following{/other_user}","gists_url":"https://api.github.com/users/Sai-Manikantha/gists{/gist_id}","starred_url":"https://api.github.com/users/Sai-Manikantha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sai-Manikantha/subscriptions","organizations_url":"https://api.github.com/users/Sai-Manikantha/orgs","repos_url":"https://api.github.com/users/Sai-Manikantha/repos","events_url":"https://api.github.com/users/Sai-Manikantha/events{/privacy}","received_events_url":"https://api.github.com/users/Sai-Manikantha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T15:38:25Z","updated_at":"2016-08-30T15:38:25Z","closed_at":null,"body":"Hi all,\r\nI am trying to train py-faster-rcnn network on PASCAL VOC 2007 dataset on 4 classes. I have changed the classes variable in pascal_voc.py and I have also made proper changes in train and test prototxt files. But I am getting the following error while training. Did anyone encounter a similar problem? Any help would be appreciated.\r\n\r\nLog is as below:\r\n\r\nNumber of classes : 4\r\nLoaded dataset `voc_2007_trainval` for training\r\nSet proposal method: gt\r\nAppending horizontally-flipped training examples...\r\nobjs :  [<Element 'object' at 0x7fe2660a85d0>, <Element 'object' at 0x7fe2660a8850>, <Element 'object' at 0x7fe2660a8d50>]\r\nTraceback (most recent call last):\r\n  File \"./tools/train_net.py\", line 104, in <module>\r\n    imdb, roidb = combined_roidb(args.imdb_name)\r\n  File \"./tools/train_net.py\", line 69, in combined_roidb\r\n    roidbs = [get_roidb(s) for s in imdb_names.split('+')]\r\n  File \"./tools/train_net.py\", line 66, in get_roidb\r\n    roidb = get_training_roidb(imdb)\r\n  File \"/home/sai/py-faster-rcnn/tools/../lib/fast_rcnn/train.py\", line 118, in get_training_roidb\r\n    imdb.append_flipped_images()\r\n  File \"/home/sai/py-faster-rcnn/tools/../lib/datasets/imdb.py\", line 106, in append_flipped_images\r\n    boxes = self.roidb[i]['boxes'].copy()\r\n  File \"/home/sai/py-faster-rcnn/tools/../lib/datasets/imdb.py\", line 67, in roidb\r\n    self._roidb = self.roidb_handler()\r\n  File \"/home/sai/py-faster-rcnn/tools/../lib/datasets/pascal_voc.py\", line 111, in gt_roidb\r\n    for index in self.image_index]\r\n  File \"/home/sai/py-faster-rcnn/tools/../lib/datasets/pascal_voc.py\", line 217, in _load_pascal_annotation\r\n    cls = self._class_to_ind[obj.find('name').text.lower().strip()]\r\nKeyError: 'chair'"}}
{"actor":{"display_login":"Sai-Manikantha"}}