{"action":"created","issue":{"url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/13","repository_url":"https://api.github.com/repos/ibab/tensorflow-wavenet","labels_url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/13/comments","events_url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/13/events","html_url":"https://github.com/ibab/tensorflow-wavenet/issues/13","id":177243511,"number":13,"title":"Can't generate samples from checkpoint file","user":{"login":"maxhodak","id":83726,"avatar_url":"https://avatars.githubusercontent.com/u/83726?v=3","gravatar_id":"","url":"https://api.github.com/users/maxhodak","html_url":"https://github.com/maxhodak","followers_url":"https://api.github.com/users/maxhodak/followers","following_url":"https://api.github.com/users/maxhodak/following{/other_user}","gists_url":"https://api.github.com/users/maxhodak/gists{/gist_id}","starred_url":"https://api.github.com/users/maxhodak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxhodak/subscriptions","organizations_url":"https://api.github.com/users/maxhodak/orgs","repos_url":"https://api.github.com/users/maxhodak/repos","events_url":"https://api.github.com/users/maxhodak/events{/privacy}","received_events_url":"https://api.github.com/users/maxhodak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-15T17:55:22Z","updated_at":"2016-09-16T16:29:27Z","closed_at":null,"body":"When I try to run `generate.py` per the readme, I get this:\r\n\r\n```\r\nI tensorflow/core/common_runtime/gpu/gpu_device.cc:838] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)\r\nRestoring model from model.ckpt-250\r\nTraceback (most recent call last):\r\n  File \"generate.py\", line 86, in <module>\r\n    main()\r\n  File \"generate.py\", line 66, in main\r\n    feed_dict={samples: window})\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py\", line 710, in run\r\n    run_metadata_ptr)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py\", line 908, in _run\r\n    feed_dict_string, options, run_metadata)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py\", line 958, in _do_run\r\n    target_list, options, run_metadata)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py\", line 978, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors.InvalidArgumentError: Output dimensions must be positive\r\n         [[Node: wavenet/dilated_stack/layer1/conv_filter/BatchToSpace = BatchToSpace[T=DT_FLOAT, block_size=2, _device=\"/job:localhost/replica:0/task:0/gpu:0\"](wavenet/dilated_stack/layer1/conv_filter, wavenet/dilated_stack/layer1/conv_filter/BatchToSpace/crops)]]\r\nCaused by op u'wavenet/dilated_stack/layer1/conv_filter/BatchToSpace', defined at:\r\n  File \"generate.py\", line 86, in <module>\r\n    main()\r\n  File \"generate.py\", line 51, in main\r\n    next_sample = net.predict_proba(samples)\r\n  File \"/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py\", line 154, in predict_proba\r\n    raw_output = self._create_network(encoded)\r\n  File \"/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py\", line 112, in _create_network\r\n    self.dilation_channels)\r\n  File \"/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py\", line 51, in _create_dilation_layer\r\n    name=\"conv_filter\")\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py\", line 228, in atrous_conv2d\r\n    block_size=rate)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py\", line 308, in batch_to_space\r\n    block_size=block_size, name=name)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py\", line 703, in apply_op\r\n    op_def=op_def)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 2317, in create_op\r\n    original_op=self._default_original_op, op_def=op_def)\r\n  File \"/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 1239, in __init__\r\n    self._traceback = _extract_stack()```"},"comment":{"url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/comments/247645912","html_url":"https://github.com/ibab/tensorflow-wavenet/issues/13#issuecomment-247645912","issue_url":"https://api.github.com/repos/ibab/tensorflow-wavenet/issues/13","id":247645912,"user":{"login":"ibab","id":890531,"avatar_url":"https://avatars.githubusercontent.com/u/890531?v=3","gravatar_id":"","url":"https://api.github.com/users/ibab","html_url":"https://github.com/ibab","followers_url":"https://api.github.com/users/ibab/followers","following_url":"https://api.github.com/users/ibab/following{/other_user}","gists_url":"https://api.github.com/users/ibab/gists{/gist_id}","starred_url":"https://api.github.com/users/ibab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibab/subscriptions","organizations_url":"https://api.github.com/users/ibab/orgs","repos_url":"https://api.github.com/users/ibab/repos","events_url":"https://api.github.com/users/ibab/events{/privacy}","received_events_url":"https://api.github.com/users/ibab/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T16:29:27Z","updated_at":"2016-09-16T16:29:27Z","body":"@mecab: The `Saver` automatically initializes the variables that it restores, so this should be fine."}}
{"actor":{"display_login":"ibab"}}