{"action":"created","issue":{"url":"https://api.github.com/repos/thtrieu/darkflow/issues/46","repository_url":"https://api.github.com/repos/thtrieu/darkflow","labels_url":"https://api.github.com/repos/thtrieu/darkflow/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/thtrieu/darkflow/issues/46/comments","events_url":"https://api.github.com/repos/thtrieu/darkflow/issues/46/events","html_url":"https://github.com/thtrieu/darkflow/issues/46","id":205828070,"number":46,"title":"train error","user":{"login":"xunkaixin","id":11584137,"avatar_url":"https://avatars.githubusercontent.com/u/11584137?v=3","gravatar_id":"","url":"https://api.github.com/users/xunkaixin","html_url":"https://github.com/xunkaixin","followers_url":"https://api.github.com/users/xunkaixin/followers","following_url":"https://api.github.com/users/xunkaixin/following{/other_user}","gists_url":"https://api.github.com/users/xunkaixin/gists{/gist_id}","starred_url":"https://api.github.com/users/xunkaixin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunkaixin/subscriptions","organizations_url":"https://api.github.com/users/xunkaixin/orgs","repos_url":"https://api.github.com/users/xunkaixin/repos","events_url":"https://api.github.com/users/xunkaixin/events{/privacy}","received_events_url":"https://api.github.com/users/xunkaixin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-07T09:12:31Z","updated_at":"2017-02-08T02:38:46Z","closed_at":null,"body":"I am trying to train the darkflow :\r\n    python3 ./flow.py --model cfg/tiny-yolo-4c.cfg --train --trainer adam\r\nI get this error\r\nParsing cfg/tiny-yolo-4c.cfg\r\nLoading None ...\r\nFinished in 4.506111145019531e-05s\r\n\r\nBuilding net ...\r\nSource | Train? | Layer description                | Output size\r\n-------+--------+----------------------------------+---------------\r\n       |        | input                            | (?, 416, 416, 3)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 416, 416, 16)\r\n Load  |  Yep!  | maxp 2x2p0_2                     | (?, 208, 208, 16)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 208, 208, 32)\r\n Load  |  Yep!  | maxp 2x2p0_2                     | (?, 104, 104, 32)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 104, 104, 64)\r\n Load  |  Yep!  | maxp 2x2p0_2                     | (?, 52, 52, 64)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 52, 52, 128)\r\n Load  |  Yep!  | maxp 2x2p0_2                     | (?, 26, 26, 128)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 26, 26, 256)\r\n Load  |  Yep!  | maxp 2x2p0_2                     | (?, 13, 13, 256)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 13, 13, 512)\r\n Load  |  Yep!  | maxp 2x2p0_1                     | (?, 13, 13, 512)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 13, 13, 1024)\r\n Init  |  Yep!  | conv 3x3p1_1  +bnorm  leaky      | (?, 13, 13, 1024)\r\n Init  |  Yep!  | sele 1x1p0_1    linear           | (?, 13, 13, 45)\r\n-------+--------+----------------------------------+---------------\r\nRunning entirely on CPU\r\ncfg/tiny-yolo-4c.cfg loss hyper-parameters:\r\n\tH       = 13\r\n\tW       = 13\r\n\tbox     = 5\r\n\tclasses = 4\r\n\tscales  = [1.0, 5.0, 1.0, 1.0]\r\nTraceback (most recent call last):\r\n  File \"./flow.py\", line 42, in <module>\r\n    tfnet = TFNet(FLAGS)\r\n  File \"/home/qkj/projects/darkflow/net/build.py\", line 51, in __init__\r\n    self.setup_meta_ops()\r\n  File \"/home/qkj/projects/darkflow/net/build.py\", line 94, in setup_meta_ops\r\n    if self.FLAGS.train: self.build_train_op()\r\n  File \"/home/qkj/projects/darkflow/net/help.py\", line 15, in build_train_op\r\n    self.framework.loss(self.out)\r\n  File \"/home/qkj/projects/darkflow/net/yolov2/train.py\", line 61, in loss\r\n    coords = tf.concat(3, [adjusted_coords_xy, adjusted_coords_wh])\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/array_ops.py\", line 1053, in concat\r\n    dtype=dtypes.int32).get_shape(\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py\", line 651, in convert_to_tensor\r\n    as_ref=False)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py\", line 716, in internal_convert_to_tensor\r\n    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/constant_op.py\", line 176, in _constant_tensor_conversion_function\r\n    return constant(v, dtype=dtype, name=name)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/constant_op.py\", line 165, in constant\r\n    tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/tensor_util.py\", line 367, in make_tensor_proto\r\n    _AssertCompatible(values, dtype)\r\n  File \"/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/tensor_util.py\", line 302, in _AssertCompatible\r\n    (dtype.name, repr(mismatch), type(mismatch).__name__))\r\nTypeError: Expected int32, got list containing Tensors of type '_Message' instead.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thtrieu/darkflow/issues/comments/278212378","html_url":"https://github.com/thtrieu/darkflow/issues/46#issuecomment-278212378","issue_url":"https://api.github.com/repos/thtrieu/darkflow/issues/46","id":278212378,"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":"2017-02-08T02:38:46Z","updated_at":"2017-02-08T02:38:46Z","body":"I suspect you are using the wrong version of Tensorflow, please confirm the following code returns the correct version:\r\n```\r\npython3 -c \"import tensorflow as tf; print(tf.__version__)\"\r\n```\r\nIf it does, then I suggest trying the following concat instead:\r\n```python\r\ncoords = tf.concat([adjusted_coords_xy, adjusted_coords_wh], 3) \r\n```"}}
{"actor":{"display_login":"thtrieu"}}