{"action":"created","issue":{"url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/23","repository_url":"https://api.github.com/repos/madhawav/YOLO3-4-Py","labels_url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/23/comments","events_url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/23/events","html_url":"https://github.com/madhawav/YOLO3-4-Py/issues/23","id":344752553,"node_id":"MDU6SXNzdWUzNDQ3NTI1NTM=","number":23,"title":"Scores ","user":{"login":"cadestian","id":19854352,"node_id":"MDQ6VXNlcjE5ODU0MzUy","avatar_url":"https://avatars1.githubusercontent.com/u/19854352?v=4","gravatar_id":"","url":"https://api.github.com/users/cadestian","html_url":"https://github.com/cadestian","followers_url":"https://api.github.com/users/cadestian/followers","following_url":"https://api.github.com/users/cadestian/following{/other_user}","gists_url":"https://api.github.com/users/cadestian/gists{/gist_id}","starred_url":"https://api.github.com/users/cadestian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadestian/subscriptions","organizations_url":"https://api.github.com/users/cadestian/orgs","repos_url":"https://api.github.com/users/cadestian/repos","events_url":"https://api.github.com/users/cadestian/events{/privacy}","received_events_url":"https://api.github.com/users/cadestian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T08:52:44Z","updated_at":"2018-08-04T07:10:07Z","closed_at":"2018-08-04T07:10:07Z","author_association":"NONE","body":"Hi! I have 2 questions.\r\n\r\n1) What does zero mean in this line?\r\n\r\n    net = Detector(bytes(\"cfg/yolov3.cfg\", encoding=\"utf-8\"), bytes(\"weights/yolov3.weights\", encoding=\"utf-8\"), 0,\r\n                   bytes(\"cfg/coco.data\", encoding=\"utf-8\"))\r\n\r\n2) How I can only detect object with score>n (f.e. 0.7)\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/comments/410429749","html_url":"https://github.com/madhawav/YOLO3-4-Py/issues/23#issuecomment-410429749","issue_url":"https://api.github.com/repos/madhawav/YOLO3-4-Py/issues/23","id":410429749,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQyOTc0OQ==","user":{"login":"madhawav","id":9636687,"node_id":"MDQ6VXNlcjk2MzY2ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/9636687?v=4","gravatar_id":"","url":"https://api.github.com/users/madhawav","html_url":"https://github.com/madhawav","followers_url":"https://api.github.com/users/madhawav/followers","following_url":"https://api.github.com/users/madhawav/following{/other_user}","gists_url":"https://api.github.com/users/madhawav/gists{/gist_id}","starred_url":"https://api.github.com/users/madhawav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhawav/subscriptions","organizations_url":"https://api.github.com/users/madhawav/orgs","repos_url":"https://api.github.com/users/madhawav/repos","events_url":"https://api.github.com/users/madhawav/events{/privacy}","received_events_url":"https://api.github.com/users/madhawav/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T07:10:07Z","updated_at":"2018-08-04T07:10:07Z","author_association":"OWNER","body":"1) The zero corresponds to the `clean` parameter of load_network method of darknet (https://github.com/pjreddie/darknet/blob/d3828827e70b293a3045a1eb80bfb4026095b87b/src/network.c). I am not aware of its actual purpose but it seems it's only used for training. This parameter is actually a boolean value. (Even though an integer is expected by darknet).\r\n\r\n2) Do something like this.\r\n```python\r\nfiltered_results = []\r\nresults = net.detect(dark_frame)\r\nfor result in results:\r\n   if result[1] > 0.7:\r\n      filtered_results.append(result)\r\n```\r\nNow, filtered_results has detections with score > 0.7.\r\n"}}
{"actor":{"display_login":"madhawav"}}