{"action":"created","issue":{"url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/113","repository_url":"https://api.github.com/repos/qqwweee/keras-yolo3","labels_url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/113/comments","events_url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/113/events","html_url":"https://github.com/qqwweee/keras-yolo3/issues/113","id":332449822,"node_id":"MDU6SXNzdWUzMzI0NDk4MjI=","number":113,"title":"why i first run train.py then run yolo.py .  having an issue","user":{"login":"luvWY","id":17444143,"node_id":"MDQ6VXNlcjE3NDQ0MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/17444143?v=4","gravatar_id":"","url":"https://api.github.com/users/luvWY","html_url":"https://github.com/luvWY","followers_url":"https://api.github.com/users/luvWY/followers","following_url":"https://api.github.com/users/luvWY/following{/other_user}","gists_url":"https://api.github.com/users/luvWY/gists{/gist_id}","starred_url":"https://api.github.com/users/luvWY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luvWY/subscriptions","organizations_url":"https://api.github.com/users/luvWY/orgs","repos_url":"https://api.github.com/users/luvWY/repos","events_url":"https://api.github.com/users/luvWY/events{/privacy}","received_events_url":"https://api.github.com/users/luvWY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-14T15:21:08Z","updated_at":"2018-06-15T08:40:13Z","closed_at":null,"author_association":"NONE","body":"I first run train.py then model.save  '.h' files.\r\nBut when I test it using yolo.py and change the load h5 file path.\r\nBut it errors.... why"},"comment":{"url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/comments/397554186","html_url":"https://github.com/qqwweee/keras-yolo3/issues/113#issuecomment-397554186","issue_url":"https://api.github.com/repos/qqwweee/keras-yolo3/issues/113","id":397554186,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU1NDE4Ng==","user":{"login":"luvWY","id":17444143,"node_id":"MDQ6VXNlcjE3NDQ0MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/17444143?v=4","gravatar_id":"","url":"https://api.github.com/users/luvWY","html_url":"https://github.com/luvWY","followers_url":"https://api.github.com/users/luvWY/followers","following_url":"https://api.github.com/users/luvWY/following{/other_user}","gists_url":"https://api.github.com/users/luvWY/gists{/gist_id}","starred_url":"https://api.github.com/users/luvWY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luvWY/subscriptions","organizations_url":"https://api.github.com/users/luvWY/orgs","repos_url":"https://api.github.com/users/luvWY/repos","events_url":"https://api.github.com/users/luvWY/events{/privacy}","received_events_url":"https://api.github.com/users/luvWY/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T08:40:13Z","updated_at":"2018-06-15T08:40:13Z","author_association":"NONE","body":"if i just use weights...  error information::\r\n  File \"yolo.py\", line 58, in generate\r\n    self.yolo_model = load_model(model_path, compile=False)\r\n  File \"/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py\", line 259, in load_model\r\n    raise ValueError('No model found in config file.')\r\nValueError: **No model found in config file.**\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py\", line 1567, in _create_c_op\r\n    c_op = c_api.TF_FinishOperation(op_desc)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension 0 in both shapes must be equal, but are 1 and 75. Shapes are [1,1,1024,255] and [75,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,255], [75,1024,1,1].\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"yolo.py\", line 217, in <module>\r\n    detect_img(YOLO())\r\n  File \"yolo.py\", line 33, in __init__\r\n    self.boxes, self.scores, self.classes = self.generate()\r\n  File \"yolo.py\", line 62, in generate\r\n    self.yolo_model.load_weights(self.model_path) # make sure model, anchors and classes match\r\n  File \"/usr/local/lib/python3.6/dist-packages/keras/engine/network.py\", line 1180, in load_weights\r\n    f, self.layers, reshape=reshape)\r\n  File \"/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py\", line 929, in load_weights_from_hdf5_group\r\n    K.batch_set_value(weight_value_tuples)\r\n  File \"/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py\", line 2430, in batch_set_value\r\n    assign_op = x.assign(assign_placeholder)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/variables.py\", line 615, in assign\r\n    return state_ops.assign(self._variable, value, use_locking=use_locking)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/state_ops.py\", line 283, in assign\r\n    validate_shape=validate_shape)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_state_ops.py\", line 60, in assign\r\n    use_locking=use_locking, name=name)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py\", line 787, in _apply_op_helper\r\n    op_def=op_def)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py\", line 3392, in create_op\r\n    op_def=op_def)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py\", line 1734, in __init__\r\n    control_input_ops)\r\n  File \"/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py\", line 1570, in _create_c_op\r\n    raise ValueError(str(e))\r\n**ValueError: Dimension 0 in both shapes must be equal, but are 1 and 75. Shapes are [1,1,1024,255] and [75,1024,1,1]. for 'Assign_360' (op: 'Assign') with input shapes: [1,1,1024,255], [75,1024,1,1].\r\nroot@ce92d39b48eb:~/workspace/3dbc/yolov3/keras-yolo3#\r\nconv2d_30 (Conv2D)              (None, None, None, 2 131072** \r\n\r\ni am confused because i just use the weights trained by train.py but the shape is wrong"}}
{"actor":{"display_login":"luvWY"}}