{"action":"created","issue":{"url":"https://api.github.com/repos/thtrieu/darkflow/issues/22","repository_url":"https://api.github.com/repos/thtrieu/darkflow","labels_url":"https://api.github.com/repos/thtrieu/darkflow/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/thtrieu/darkflow/issues/22/comments","events_url":"https://api.github.com/repos/thtrieu/darkflow/issues/22/events","html_url":"https://github.com/thtrieu/darkflow/issues/22","id":197756452,"number":22,"title":"yolov2 error","user":{"login":"jwnsu","id":210987,"avatar_url":"https://avatars.githubusercontent.com/u/210987?v=3","gravatar_id":"","url":"https://api.github.com/users/jwnsu","html_url":"https://github.com/jwnsu","followers_url":"https://api.github.com/users/jwnsu/followers","following_url":"https://api.github.com/users/jwnsu/following{/other_user}","gists_url":"https://api.github.com/users/jwnsu/gists{/gist_id}","starred_url":"https://api.github.com/users/jwnsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwnsu/subscriptions","organizations_url":"https://api.github.com/users/jwnsu/orgs","repos_url":"https://api.github.com/users/jwnsu/repos","events_url":"https://api.github.com/users/jwnsu/events{/privacy}","received_events_url":"https://api.github.com/users/jwnsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-12-27T20:53:47Z","updated_at":"2016-12-28T04:28:32Z","closed_at":null,"body":"Tried a v2 trained model (own dataset) from the C yolov2 project, got following error:\r\n----Traceback (most recent call last):\r\n  File \"./flow\", line 42, in <module>\r\n    tfnet = TFNet(FLAGS)\r\n  File \"/home/ai/darkflow/net/build.py\", line 34, in __init__\r\n    darknet = Darknet(FLAGS)\r\n  File \"/home/ai/darkflow/dark/darknet.py\", line 16, in __init__\r\n    src_parsed = self.parse_cfg(self.src_cfg, FLAGS)\r\n  File \"/home/ai/darkflow/dark/darknet.py\", line 66, in parse_cfg\r\n    else: new = create_darkop(*info)\r\n  File \"/home/ai/darkflow/dark/darkop.py\", line 61, in create_darkop\r\n    return op_class(ltype, num, *args)\r\n  File \"/home/ai/darkflow/dark/layer.py\", line 19, in __init__\r\n    size = np.prod(shp)\r\n  File \"/home/tensorflow/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py\", line 2539, in prod\r\n    out=out, **kwargs)\r\n  File \"/home/tensorflow/local/lib/python2.7/site-packages/numpy/core/_methods.py\", line 35, in _prod\r\n    return umr_prod(a, axis, dtype, out, keepdims)\r\nTypeError: cannot perform reduce with flexible type\r\n-----------\r\n\r\nTake a quick look at dark/layer.py and could not figure out quickly what went wrong. Running with latest Tensorflow 0.12.\r\n\r\nSame model/weight files work very well with YoloV2 C project. Use the command from this website: ./flow --test <test-dir> --model cfg-file --load weight-files\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thtrieu/darkflow/issues/comments/269423904","html_url":"https://github.com/thtrieu/darkflow/issues/22#issuecomment-269423904","issue_url":"https://api.github.com/repos/thtrieu/darkflow/issues/22","id":269423904,"user":{"login":"thtrieu","id":9194247,"avatar_url":"https://avatars.githubusercontent.com/u/9194247?v=3","gravatar_id":"","url":"https://api.github.com/users/thtrieu","html_url":"https://github.com/thtrieu","followers_url":"https://api.github.com/users/thtrieu/followers","following_url":"https://api.github.com/users/thtrieu/following{/other_user}","gists_url":"https://api.github.com/users/thtrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/thtrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thtrieu/subscriptions","organizations_url":"https://api.github.com/users/thtrieu/orgs","repos_url":"https://api.github.com/users/thtrieu/repos","events_url":"https://api.github.com/users/thtrieu/events{/privacy}","received_events_url":"https://api.github.com/users/thtrieu/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T04:28:32Z","updated_at":"2016-12-28T04:28:32Z","body":"A lot of things need to be improved. Including the speed, I'm planning on moving to `C` code for post-processing part. The two repositories cannot match performance because of internal numerical handling of Tensorflow is different than that of Darknet. Just a little difference can be amplified greatly to later layers, since the model weights are trained with Darknet, it is expected to be worse running on Tensorflow. I will spend more time looking into this as well. But it's not going to be any time soon since Im a bit busy lately.\r\n\r\nThanks for test cases from you."}}
{"actor":{"display_login":"thtrieu"}}