{"action":"created","issue":{"url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/101","repository_url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once","labels_url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/101/comments","events_url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/101/events","html_url":"https://github.com/DeepBaksuVision/You_Only_Look_Once/issues/101","id":386545265,"node_id":"MDU6SXNzdWUzODY1NDUyNjU=","number":101,"title":"[You Only Look Once] Class 20개 학습 np_label[grid_x_index][grid_y_index] index error 발생","user":{"login":"ssaru","id":13328380,"node_id":"MDQ6VXNlcjEzMzI4Mzgw","avatar_url":"https://avatars2.githubusercontent.com/u/13328380?v=4","gravatar_id":"","url":"https://api.github.com/users/ssaru","html_url":"https://github.com/ssaru","followers_url":"https://api.github.com/users/ssaru/followers","following_url":"https://api.github.com/users/ssaru/following{/other_user}","gists_url":"https://api.github.com/users/ssaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaru/subscriptions","organizations_url":"https://api.github.com/users/ssaru/orgs","repos_url":"https://api.github.com/users/ssaru/repos","events_url":"https://api.github.com/users/ssaru/events{/privacy}","received_events_url":"https://api.github.com/users/ssaru/received_events","type":"User","site_admin":false},"labels":[{"id":1022601239,"node_id":"MDU6TGFiZWwxMDIyNjAxMjM5","url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1113815986,"node_id":"MDU6TGFiZWwxMTEzODE1OTg2","url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/labels/doing","name":"doing","color":"3bf7d8","default":false},{"id":1139396447,"node_id":"MDU6TGFiZWwxMTM5Mzk2NDQ3","url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/labels/hotfix","name":"hotfix","color":"c64233","default":false}],"state":"open","locked":false,"assignee":{"login":"ssaru","id":13328380,"node_id":"MDQ6VXNlcjEzMzI4Mzgw","avatar_url":"https://avatars2.githubusercontent.com/u/13328380?v=4","gravatar_id":"","url":"https://api.github.com/users/ssaru","html_url":"https://github.com/ssaru","followers_url":"https://api.github.com/users/ssaru/followers","following_url":"https://api.github.com/users/ssaru/following{/other_user}","gists_url":"https://api.github.com/users/ssaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaru/subscriptions","organizations_url":"https://api.github.com/users/ssaru/orgs","repos_url":"https://api.github.com/users/ssaru/repos","events_url":"https://api.github.com/users/ssaru/events{/privacy}","received_events_url":"https://api.github.com/users/ssaru/received_events","type":"User","site_admin":false},"assignees":[{"login":"ssaru","id":13328380,"node_id":"MDQ6VXNlcjEzMzI4Mzgw","avatar_url":"https://avatars2.githubusercontent.com/u/13328380?v=4","gravatar_id":"","url":"https://api.github.com/users/ssaru","html_url":"https://github.com/ssaru","followers_url":"https://api.github.com/users/ssaru/followers","following_url":"https://api.github.com/users/ssaru/following{/other_user}","gists_url":"https://api.github.com/users/ssaru/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaru/subscriptions","organizations_url":"https://api.github.com/users/ssaru/orgs","repos_url":"https://api.github.com/users/ssaru/repos","events_url":"https://api.github.com/users/ssaru/events{/privacy}","received_events_url":"https://api.github.com/users/ssaru/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-12-02T10:03:25Z","updated_at":"2018-12-02T13:44:10Z","closed_at":null,"author_association":"NONE","body":"학습시 다음과 같은 에러가 납니다.\r\n전에는 이런 에러가 없었던 것 같은데\r\nAugmentation시, 부동소수점의 label 값이 `int()`로 변환되면서 올림이 일어나서 index에러가 나는 것으로\r\n추정됩니다.\r\n\r\n한번 확인해보겠습니다.\r\n\r\n```bash\r\nepoch: [1/16000], total step: [30/17136000], batch step [30/1071], lr: 0.001, total_loss: 159.7527, coord1: 84.4344, size1: 71.2426, noobj_clss: 0.4048, objness1: 1.2692, class_loss: 2.4017\r\nepoch: [1/16000], total step: [40/17136000], batch step [40/1071], lr: 0.001, total_loss: 148.3626, coord1: 72.7185, size1: 69.3889, noobj_clss: 1.3785, objness1: 1.2605, class_loss: 3.6164\r\nepoch: [1/16000], total step: [50/17136000], batch step [50/1071], lr: 0.001, total_loss: 17.8654, coord1: 7.7819, size1: 6.8852, noobj_clss: 0.2537, objness1: 1.0417, class_loss: 1.9030\r\nepoch: [1/16000], total step: [60/17136000], batch step [60/1071], lr: 0.001, total_loss: 28.2859, coord1: 15.4291, size1: 8.8064, noobj_clss: 0.2088, objness1: 1.8481, class_loss: 1.9934\r\nepoch: [1/16000], total step: [70/17136000], batch step [70/1071], lr: 0.001, total_loss: 58.0039, coord1: 31.7879, size1: 21.8455, noobj_clss: 0.1341, objness1: 1.8722, class_loss: 2.3643\r\nepoch: [1/16000], total step: [80/17136000], batch step [80/1071], lr: 0.001, total_loss: 13.2648, coord1: 6.6024, size1: 3.1327, noobj_clss: 0.4123, objness1: 1.4370, class_loss: 1.6804\r\nepoch: [1/16000], total step: [90/17136000], batch step [90/1071], lr: 0.001, total_loss: 7.9065, coord1: 2.2914, size1: 3.2226, noobj_clss: 0.5510, objness1: 0.7447, class_loss: 1.0968\r\nepoch: [1/16000], total step: [100/17136000], batch step [100/1071], lr: 0.001, total_loss: 10.9651, coord1: 4.1706, size1: 4.0657, noobj_clss: 0.2588, objness1: 1.2883, class_loss: 1.1818\r\nepoch: [1/16000], total step: [200/17136000], batch step [200/1071], lr: 0.001, total_loss: 12.4949, coord1: 5.6460, size1: 3.4982, noobj_clss: 0.5134, objness1: 1.2569, class_loss: 1.5804\r\nepoch: [1/16000], total step: [300/17136000], batch step [300/1071], lr: 0.001, total_loss: 7.5501, coord1: 2.9059, size1: 1.1933, noobj_clss: 0.3017, objness1: 1.2945, class_loss: 1.8548\r\nepoch: [1/16000], total step: [400/17136000], batch step [400/1071], lr: 0.001, total_loss: 10.2634, coord1: 3.2991, size1: 3.8565, noobj_clss: 0.4008, objness1: 1.2543, class_loss: 1.4528\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 63, in <module>\r\n    main()\r\n  File \"main.py\", line 57, in main\r\n    train(params)\r\n  File \"/home/keti-1080ti/Documents/dev/yolov1/train.py\", line 121, in train\r\n    for i, (images, labels, sizes) in enumerate(train_loader):\r\n  File \"/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py\", line 314, in __next__\r\n    batch = self.collate_fn([self.dataset[i] for i in indices])\r\n  File \"/home/keti-1080ti/Documents/dev/yolov1/utilities/dataloader.py\", line 65, in detection_collate\r\n    np_label[grid_x_index][grid_y_index] = np.array([objectness, x_offset, y_offset, w_ratio, h_ratio, classes])\r\nIndexError: index 7 is out of bounds for axis 0 with size 7\r\n```"},"comment":{"url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/comments/443508682","html_url":"https://github.com/DeepBaksuVision/You_Only_Look_Once/issues/101#issuecomment-443508682","issue_url":"https://api.github.com/repos/DeepBaksuVision/You_Only_Look_Once/issues/101","id":443508682,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzUwODY4Mg==","user":{"login":"insurgent92","id":15168540,"node_id":"MDQ6VXNlcjE1MTY4NTQw","avatar_url":"https://avatars1.githubusercontent.com/u/15168540?v=4","gravatar_id":"","url":"https://api.github.com/users/insurgent92","html_url":"https://github.com/insurgent92","followers_url":"https://api.github.com/users/insurgent92/followers","following_url":"https://api.github.com/users/insurgent92/following{/other_user}","gists_url":"https://api.github.com/users/insurgent92/gists{/gist_id}","starred_url":"https://api.github.com/users/insurgent92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insurgent92/subscriptions","organizations_url":"https://api.github.com/users/insurgent92/orgs","repos_url":"https://api.github.com/users/insurgent92/repos","events_url":"https://api.github.com/users/insurgent92/events{/privacy}","received_events_url":"https://api.github.com/users/insurgent92/received_events","type":"User","site_admin":false},"created_at":"2018-12-02T13:44:10Z","updated_at":"2018-12-02T13:44:10Z","author_association":"NONE","body":"https://github.com/DeepBaksuVision/You_Only_Look_Once/blob/5a55a033d8356a2e0969da5279d9caded89a1f5d/utilities/utils.py#L109\r\n\r\n제가 짠 코드에서 소숫점 3자리에서 반올림하는 코드가 들어있네요\r\n간단하게 확인한 결과 이 문제가 확실합니다. \r\n\r\n"}}
{"actor":{"display_login":"insurgent92"}}