{"action":"opened","issue":{"url":"https://api.github.com/repos/unsky/ohem-end2end/issues/6","repository_url":"https://api.github.com/repos/unsky/ohem-end2end","labels_url":"https://api.github.com/repos/unsky/ohem-end2end/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/unsky/ohem-end2end/issues/6/comments","events_url":"https://api.github.com/repos/unsky/ohem-end2end/issues/6/events","html_url":"https://github.com/unsky/ohem-end2end/issues/6","id":346610612,"node_id":"MDU6SXNzdWUzNDY2MTA2MTI=","number":6,"title":"about training","user":{"login":"foralliance","id":23371826,"node_id":"MDQ6VXNlcjIzMzcxODI2","avatar_url":"https://avatars2.githubusercontent.com/u/23371826?v=4","gravatar_id":"","url":"https://api.github.com/users/foralliance","html_url":"https://github.com/foralliance","followers_url":"https://api.github.com/users/foralliance/followers","following_url":"https://api.github.com/users/foralliance/following{/other_user}","gists_url":"https://api.github.com/users/foralliance/gists{/gist_id}","starred_url":"https://api.github.com/users/foralliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foralliance/subscriptions","organizations_url":"https://api.github.com/users/foralliance/orgs","repos_url":"https://api.github.com/users/foralliance/repos","events_url":"https://api.github.com/users/foralliance/events{/privacy}","received_events_url":"https://api.github.com/users/foralliance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T13:54:33Z","updated_at":"2018-08-01T13:54:33Z","closed_at":null,"author_association":"NONE","body":"@unsky  HI\r\n\r\nWhen training, an error\r\n```\r\nTraceback (most recent call last):\r\n  File \"./tools/train_net.py\", line 113, in <module>\r\n    max_iters=args.max_iters)\r\n  File \"/home/jmx/ohem-end2end/tools/../lib/fast_rcnn/train.py\", line 160, in train_net\r\n    model_paths = sw.train_model(max_iters)\r\n  File \"/home/jmx/ohem-end2end/tools/../lib/fast_rcnn/train.py\", line 101, in train_model\r\n    self.solver.step(1)\r\n  File \"/home/jmx/ohem-end2end/tools/../lib/roi_data_layer/layer.py\", line 213, in forward\r\n    for x in [cls_prob[i,label] for i, label in enumerate(labels)]]\r\nIndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices\r\n```\r\n\r\nThis error was also encountered while executing the **official OHEM code**\r\nHow to solve this problem?\r\nmany many thanks!!!!"}}
{"actor":{"display_login":"foralliance"}}