{"action":"created","issue":{"url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/9","repository_url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom","labels_url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/9/comments","events_url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/9/events","html_url":"https://github.com/mihahauke/deep_rl_vizdoom/issues/9","id":330148804,"node_id":"MDU6SXNzdWUzMzAxNDg4MDQ=","number":9,"title":"ValueError: Negative dimension size caused by subtracting 3 from 1 for 'dueling_dqn/conv1/Conv2D' (op: 'Conv2D') with input shapes: [?,1,14,32], [3,3,32,32].","user":{"login":"ouyangzhuzhu","id":37131687,"node_id":"MDQ6VXNlcjM3MTMxNjg3","avatar_url":"https://avatars1.githubusercontent.com/u/37131687?v=4","gravatar_id":"","url":"https://api.github.com/users/ouyangzhuzhu","html_url":"https://github.com/ouyangzhuzhu","followers_url":"https://api.github.com/users/ouyangzhuzhu/followers","following_url":"https://api.github.com/users/ouyangzhuzhu/following{/other_user}","gists_url":"https://api.github.com/users/ouyangzhuzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyangzhuzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyangzhuzhu/subscriptions","organizations_url":"https://api.github.com/users/ouyangzhuzhu/orgs","repos_url":"https://api.github.com/users/ouyangzhuzhu/repos","events_url":"https://api.github.com/users/ouyangzhuzhu/events{/privacy}","received_events_url":"https://api.github.com/users/ouyangzhuzhu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T07:26:55Z","updated_at":"2018-06-07T07:28:44Z","closed_at":null,"author_association":"NONE","body":"here I have quesion below when I run dqn for defend the center senario:\r\nHow can I solve it....\r\nTraceback (most recent call last):\r\n  File \"/home/d3alg/.local/lib/python3.6/site-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: Negative dimension size caused by subtracting 3 from 1 for 'dueling_dqn/conv1/Conv2D' (op: 'Conv2D') with input shapes: [?,1,14,32], [3,3,32,32].\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"./train_dqn.py\", line 6, in <module>\r\n    train_dqn()\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/_train_test.py\", line 74, in train_dqn\r\n    dqn = DQN(model_savefile=model_savefile, **settings)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/_dqn_algo.py\", line 80, in __init__\r\n    **settings)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/dqn.py\", line 122, in __init__\r\n    super(DuelingDQNNet, self).__init__(*args, **kwargs)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/dqn.py\", line 44, in __init__\r\n    self._prepare_ops()\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/dqn.py\", line 55, in _prepare_ops\r\n    name_scope=self._name_scope)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/dqn.py\", line 130, in create_architecture\r\n    fc_input = self.get_input_layers(img_input, misc_input, name_scope)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/common.py\", line 72, in get_input_layers\r\n    self.conv_strides)\r\n  File \"/home/lab/wsy/deep_rl_vizdoom/networks/common.py\", line 20, in create_conv_layers\r\n    padding=\"VALID\", scope=name_scope + \"/conv\" + str(i))\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py\", line 183, in func_with_args\r\n    return func(*args, **current_args)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/contrib/layers/python/layers/layers.py\", line 1049, in convolution\r\n    outputs = layer.apply(inputs)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/layers/base.py\", line 828, in apply\r\n    return self.__call__(inputs, *args, **kwargs)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/layers/base.py\", line 717, in __call__\r\n    outputs = self.call(inputs, *args, **kwargs)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/layers/convolutional.py\", line 168, in call\r\n    outputs = self._convolution_op(inputs, self.kernel)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py\", line 868, in __call__\r\n    return self.conv_op(inp, filter)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py\", line 520, in __call__\r\n    return self.call(inp, filter)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py\", line 204, in __call__\r\n    name=self.name)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/ops/gen_nn_ops.py\", line 956, in conv2d\r\n    data_format=data_format, dilations=dilations, name=name)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py\", line 787, in _apply_op_helper\r\n    op_def=op_def)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 3392, in create_op\r\n    op_def=op_def)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 1734, in __init__\r\n    control_input_ops)\r\n  File \"/home/d3alg/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 1570, in _create_c_op\r\n    raise ValueError(str(e))\r\nValueError: Negative dimension size caused by subtracting 3 from 1 for 'dueling_dqn/conv1/Conv2D' (op: 'Conv2D') with input shapes: [?,1,14,32], [3,3,32,32].\r\n "},"comment":{"url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/comments/395321147","html_url":"https://github.com/mihahauke/deep_rl_vizdoom/issues/9#issuecomment-395321147","issue_url":"https://api.github.com/repos/mihahauke/deep_rl_vizdoom/issues/9","id":395321147,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTMyMTE0Nw==","user":{"login":"ouyangzhuzhu","id":37131687,"node_id":"MDQ6VXNlcjM3MTMxNjg3","avatar_url":"https://avatars1.githubusercontent.com/u/37131687?v=4","gravatar_id":"","url":"https://api.github.com/users/ouyangzhuzhu","html_url":"https://github.com/ouyangzhuzhu","followers_url":"https://api.github.com/users/ouyangzhuzhu/followers","following_url":"https://api.github.com/users/ouyangzhuzhu/following{/other_user}","gists_url":"https://api.github.com/users/ouyangzhuzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyangzhuzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyangzhuzhu/subscriptions","organizations_url":"https://api.github.com/users/ouyangzhuzhu/orgs","repos_url":"https://api.github.com/users/ouyangzhuzhu/repos","events_url":"https://api.github.com/users/ouyangzhuzhu/events{/privacy}","received_events_url":"https://api.github.com/users/ouyangzhuzhu/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T07:28:44Z","updated_at":"2018-06-07T07:28:44Z","author_association":"NONE","body":"here is my command:\r\n./train_dqn.py -s settings/examples/defend_the_center_dqn.yml\r\n\r\nand the full context of my yml is:\r\nconfig_file: defend_the_center.cfg\r\nscenario_tag: defend_cent\r\n\r\n\r\nresolution: [40, 30]\r\nconv_filters_num: [ 32,  32 ]\r\nconv_filters_sizes: [ 4, 3 ]\r\nconv_strides: [ 2, 1 ]\r\n# General training options\r\n\r\nepsilon_decay_steps: 2e05\r\n\r\ntrain_steps_per_epoch: 5000\r\nfrozen_steps: 2000\r\n\r\nrun_tag: dqn_defend_the_center\r\nuse_misc: false\r\n"}}
{"actor":{"display_login":"ouyangzhuzhu"}}