New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: mismatch: got 20 values to set 18 parameters #13
Comments
Hi @wangxiao5791509 , Sorry, the key for the discriminator was wrong, please try this: |
@junting Thanks your kind replay. But still get wrong, the same problem: mismatched. Does it caused by input image size ? I keep it the same as yours, but still can not run smoothly ... Traceback (most recent call last): |
Hi, guys. I met the same problem. Have you solved it? Looking forward to your reply! |
I mean, ValueError: mismatch: parameter has shape (12288, 100) but value to set has shape (12288, 60) |
The same problem "ValueError: mismatch: parameter has shape (12288, 100) but value to set has shape (12288, 60)". Can anyone help with this? |
+1 |
Hi, thanks for the code and trained model. But, I found when load the trained model of discriminator you provided, it shown me the following error. Could you check that model again ? Thanks.
Traceback (most recent call last):
File "wangxiao-02-train.py", line 184, in
train()
File "wangxiao-02-train.py", line 169, in train
load_weights(net=model.discriminator['fc5'], path="test/discrim_", epochtoload=90)
File "/media/wangxiao/724eaeef-e688-4b09-9cc9-dfaca44079b2/saliency-salgan-2017-master-tracking/scripts/utils.py", line 24, in load_weights
lasagne.layers.set_all_param_values(net, param_values)
File "/home/wangxiao/Lasagne/src/lasagne/lasagne/layers/helper.py", line 512, in set_all_param_values
(len(values), len(params)))
ValueError: mismatch: got 20 values to set 18 parameters
The text was updated successfully, but these errors were encountered: