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

im confused about the img size in train set and validation set #24

Open
anqier0468 opened this issue May 16, 2018 · 1 comment
Open

Comments

@anqier0468
Copy link

Actually, i meet this problem.
File "/home/..../Bilinear-CNN-TensorFlow/core/bcnn_DD_woft_with_random_crops.py", line 398, in
val_loss += sess.run(loss, feed_dict={imgs: batch_val_x, target: batch_val_y})
File "/home/..../python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run
run_metadata_ptr)
File "/home/....../python2.7/site-packages/tensorflow/python/client/session.py", line 961, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (10, 224, 224, 3) for Tensor u'Placeholder:0', which has shape '(?, 448, 448, 3)'
so ,why is the img size of train set and val set, test set different in create_h5_datasets.py?

build_hdf5_image_dataset(new_val, image_shape=(224, 224), mode='file', output_path='new_val_224.h5', categorical_labels=True, normalize=False)' build_hdf5_image_dataset(new_test, image_shape=(224, 224), mode='file', output_path='new_test_224.h5', categorical_labels=True, normalize=False)' build_hdf5_image_dataset(new_train, image_shape=(488, 488), mode='file', output_path='new_train_488.h5', categorical_labels=True, normalize=False)'
Hope for your answer. 3Q

@JUSTDODoDo
Copy link

I have encountered the same problem. I solved the verification set size to 448x448. I still have a question, can the size of the test set be set to 448x448?

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