Skip to content
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: Cannot feed value of shape (128, 0) for Tensor Placeholder_1:0, which has shape (?, 10) #58

Open
nikkon3 opened this issue Feb 19, 2022 · 1 comment

Comments

@nikkon3
Copy link

nikkon3 commented Feb 19, 2022

When i try to train dch with train_val_script.py and its default args i get the following error:

Traceback (most recent call last):
File "train_val_script.py", line 61, in
model_weights = model.train(train_img, database_img, query_img, args)
File "/home/nikos/DeepHash/examples/dch/model/dch/init.py", line 9, in train
model.train(img_train)
File "/home/nikos/DeepHash/examples/dch/model/dch/dch.py", line 187, in train
self.img_label: labels})
File "/home/nikos/DeepHash/env/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 968, in run
run_metadata_ptr)
File "/home/nikos/DeepHash/env/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1165, in _run
f'Cannot feed value of shape {str(np_val.shape)} for Tensor '
ValueError: Cannot feed value of shape (128, 0) for Tensor Placeholder_1:0, which has shape (?, 10)

The dataset i use is the cifar10. Any ideas what is going wrong ? thanks

@rsindper
Copy link

Hi, did you find the solution to this error? I had the same error coming up when running "train_val_script.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants