Created
February 22, 2017 17:32
-
-
Save mridulbirla/1952e9227253980e1c118120220f8977 to your computer and use it in GitHub Desktop.
Error Stacktrace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1021, in _do_call | |
return fn(*args) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1003, in _run_fn | |
status, run_metadata) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/contextlib.py", line 66, in __exit__ | |
next(self.gen) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 469, in raise_exception_on_not_ok_status | |
pywrap_tensorflow.TF_GetCode(status)) | |
tensorflow.python.framework.errors_impl.InvalidArgumentError: Conv2DCustomBackpropInput: input and out_backprop must have the same batch size | |
[[Node: conv2d_transpose = Conv2DBackpropInput[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/cpu:0"](conv2d_transpose/output_shape, transpose, Reshape)]] | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/main.py", line 91, in <module> | |
launch_training(**d_params) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/main.py", line 8, in launch_training | |
train.train(**kwargs) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/train.py", line 134, in train | |
label_flipping=label_flipping) | |
File "../utils/data_utils.py", line 90, in get_disc_batch | |
X_disc = generator_model.predict([y_cat, y_cont, noise_input]) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/training.py", line 1272, in predict | |
batch_size=batch_size, verbose=verbose) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/training.py", line 945, in _predict_loop | |
batch_outs = f(ins_batch) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 1943, in __call__ | |
feed_dict=feed_dict) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 766, in run | |
run_metadata_ptr) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 964, in _run | |
feed_dict_string, options, run_metadata) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1014, in _do_run | |
target_list, options, run_metadata) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1034, in _do_call | |
raise type(e)(node_def, op, message) | |
tensorflow.python.framework.errors_impl.InvalidArgumentError: Conv2DCustomBackpropInput: input and out_backprop must have the same batch size | |
[[Node: conv2d_transpose = Conv2DBackpropInput[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/cpu:0"](conv2d_transpose/output_shape, transpose, Reshape)]] | |
Caused by op 'conv2d_transpose', defined at: | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/main.py", line 91, in <module> | |
launch_training(**d_params) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/main.py", line 8, in launch_training | |
train.train(**kwargs) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/train.py", line 82, in train | |
use_mbd=use_mbd) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/models.py", line 249, in load | |
model = generator_deconv(cat_dim, cont_dim, noise_dim, img_dim, bn_mode, batch_size, model_name=model_name, dset=dset) | |
File "/home/mridul/thesis/mycode/DeepLearningImplementations/InfoGAN/src/model/models.py", line 122, in generator_deconv | |
x = Deconvolution2D(nb_filters, 3, 3, output_shape=o_shape, subsample=(2, 2), border_mode="same")(x) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/topology.py", line 572, in __call__ | |
self.add_inbound_node(inbound_layers, node_indices, tensor_indices) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/topology.py", line 635, in add_inbound_node | |
Node.create_node(self, inbound_layers, node_indices, tensor_indices) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/topology.py", line 166, in create_node | |
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0])) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/layers/convolutional.py", line 674, in call | |
filter_shape=self.W_shape) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 2734, in deconv2d | |
padding=padding) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/ops/nn_ops.py", line 1078, in conv2d_transpose | |
name=name) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 489, in conv2d_backprop_input | |
data_format=data_format, name=name) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 759, in apply_op | |
op_def=op_def) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2240, in create_op | |
original_op=self._default_original_op, op_def=op_def) | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1128, in __init__ | |
self._traceback = _extract_stack() | |
InvalidArgumentError (see above for traceback): Conv2DCustomBackpropInput: input and out_backprop must have the same batch size | |
[[Node: conv2d_transpose = Conv2DBackpropInput[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/cpu:0"](conv2d_transpose/output_shape, transpose, Reshape)]] | |
Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7fed726818d0>> | |
Traceback (most recent call last): | |
File "/home/mridul/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 581, in __del__ | |
AttributeError: 'NoneType' object has no attribute 'TF_DeleteStatus' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment