Closed petteriTeikari closed 8 years ago
Can you try this out with the updated master? Also, could you please post your theanorc here?
Also, would it possible if you can try out the code with the environment that is built from environment.yml?
I run into the same problem when using the CIFAR dataset: File "/Users/lfc009/anaconda2/envs/ladder/lib/python2.7/site-packages/theano/gof/op.py", line 611, in call node = self.make_node(_inputs, *_kwargs) File "/Users/lfc009/anaconda2/envs/ladder/lib/python2.7/site-packages/theano/tensor/nnet/conv.py", line 655, in make_node "inputs(%s), kerns(%s)" % (_inputs.dtype, _kerns.dtype)) NotImplementedError: The image and the kernel must have the same type.inputs(float64), kerns(float32)
When running the Mnist dataset, I get the following error:
INFO:main:== PARAMETERS ==
INFO:main: zestbn : bugfix
INFO:main: dseed : 1
INFO:main: top_c : 1
INFO:main: super_noise_std : 0.3
INFO:main: batch_size : 100
INFO:main: dataset : mnist
INFO:main: valid_set_size : 10000
INFO:main: num_epochs : 150
INFO:main: whiten_zca : 0
INFO:main: unlabeled_samples : 60000
INFO:main: decoder_spec : ('gauss',)
INFO:main: valid_batch_size : 100
INFO:main: denoising_cost_x : (1000.0, 1.0, 0.01, 0.01, 0.01, 0.01, 0.01)
INFO:main: f_local_noise_std : 0.3
INFO:main: cmd : train
INFO:main: act : relu
INFO:main: lrate_decay : 0.67
INFO:main: seed : 1
INFO:main: lr : 0.002
INFO:main: save_to : mnist_all_full
INFO:main: save_dir : results/mnist_all_full15
INFO:main: commit :
INFO:main: contrast_norm : 0
INFO:main: encoder_layers : ('1000', '500', '250', '250', '250', '10')
INFO:main: labeled_samples : 60000
Traceback (most recent call last):
File "run.py", line 655, in
Any idea on how to solve it?
@lfpolani Sorry for the slow response. Could you please show us your environment setup? I did remember that Fuel has some breaking changes in their dataset between different versions.
Also, could you cross check the environment.yml file that I provided work if you install that exactly?
Thanks, I already solved my problem. I will close this issue.
Hi @ifpolani, I just meet a same error you did, and got this error report:
TypeError: ('An update must have the same type as the original shared variable (shared_var=f_5_b, shared_var.type=TensorType(float32, vector), update_val=Elemwise{sub,no_inplace}.0, update_val.type=TensorType(float64, vector))., If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.\n\nOriginal exception:\n\tTypeError: An update must have the same type as the original shared variable (shared_var=f_5_b, shared_var.type=TensorType(float32, vector), update_val=Elemwise{sub,no_inplace}.0, update_val.type=TensorType(float64, vector))., If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.', 'If the difference is related to the broadcast pattern, you can call the tensor.unbroadcast(var, axis_to_unbroadcast[, ...]) function to remove broadcastable dimensions.')
could you please tell me how to solve it on your way. Thank you!
I got the following error when trying to run the cifar10 example:
Which got fixed by casting manually at line 180 of
ladder.py
:But this again later leads to TypeError:
Any thoughts on where it goes wrong?