DeepHash icon indicating copy to clipboard operation
DeepHash copied to clipboard

ValueError: Cannot feed value of shape (128, 0) for Tensor Placeholder_1:0, which has shape (?, 10)

Open nikkon3 opened this issue 3 years ago • 1 comments

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

nikkon3 avatar Feb 19 '22 22:02 nikkon3

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

rsindper avatar May 20 '22 02:05 rsindper