-
Notifications
You must be signed in to change notification settings - Fork 96
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 when executing train_one_shot_learning_matching_network.py without any modification #20
Comments
I got a similar error, were you able to solve it? |
I think there might be something wrong with your dataset or codes related to 'img_height' and 'img_width'. It's clearly that the shape of target_image and your input doesn't match. |
I haven't updated this code for a while. I would not be surprised if one of the latest updates of tensorflow broke my code. |
Sir, i use the same version of tensorflow with you.
and this is my packages installed
|
@YuanEric88 Hi, have you solved this issue? How did you solve it? |
Hi,
I simply ran train_one_shot_learning_matching_network.py following guideline in the Readme file, then I met following error. Does anyone meet the same problem?
Traceback (most recent call last): | 0/1000 [00:00<?, ?it/s]
File "train_one_shot_learning_matching_network.py", line 69, in
sess=sess)
File "/one_shot_learning/MatchingNetworks-master/experiment_builder.py", line 82, in run_training_epoch
self.learning_rate: self.current_learning_rate})
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (1, 32, 20, 1) for Tensor 'target_image:0', which has shape '(1, 32, 28, 28, 1)'
The text was updated successfully, but these errors were encountered: