Can't generate samples from checkpoint file
See original GitHub issueWhen I try to run generate.py
per the readme, I get this:
I 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)
Restoring model from model.ckpt-250
Traceback (most recent call last):
File "generate.py", line 86, in <module>
main()
File "generate.py", line 66, in main
feed_dict={samples: window})
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 710, in run
run_metadata_ptr)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 908, in _run
feed_dict_string, options, run_metadata)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 958, in _do_run
target_list, options, run_metadata)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 978, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: Output dimensions must be positive
[[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)]]
Caused by op u'wavenet/dilated_stack/layer1/conv_filter/BatchToSpace', defined at:
File "generate.py", line 86, in <module>
main()
File "generate.py", line 51, in main
next_sample = net.predict_proba(samples)
File "/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py", line 154, in predict_proba
raw_output = self._create_network(encoded)
File "/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py", line 112, in _create_network
self.dilation_channels)
File "/home/ubuntu/jupyter_base/project/tensorflow-wavenet/wavenet.py", line 51, in _create_dilation_layer
name="conv_filter")
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 228, in atrous_conv2d
block_size=rate)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 308, in batch_to_space
block_size=block_size, name=name)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 703, in apply_op
op_def=op_def)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2317, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/ubuntu/jupyter_base/venv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1239, in __init__
self._traceback = _extract_stack()```
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:22 (16 by maintainers)
Top Results From Across the Web
Unable to load weights from pytorch checkpoint file #4336
In my case, there was something problem during moving the files, so pytorch_model.bin file existed but the size was 0 byte. After replacing...
Read more >checkpoint files not getting created - CosmoCoffee
Infact, I used supernovae data likelihood module as the template. I have 3 extra parameters which are entirely handled in the data likelihood ......
Read more >Training checkpoints | TensorFlow Core
Use a tf. train. Checkpoint object to manually create a checkpoint, where the objects you want to checkpoint are set as attributes on...
Read more >Using Gaussian Checkpoint Files
When a calculation is started using information from a checkpoint file, the calculation results will be placed in the exact same checkpoint file,...
Read more >Using a CHECKPOINT in SSIS packages to restart package ...
Open the file, and you can see the content of this file as follows. Fix the error message and rerun the package.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for taking a look at this! I no longer get the above error, but now get:
Trying even after pulling these patches and retraining (although not for long), I get this (OSX, no GPU):