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: The passed save_path is not a valid checkpoint: model-spatial-11X11.ckpt-3999 #16

Open
juseph-dan opened this issue Oct 3, 2018 · 2 comments

Comments

@juseph-dan
Copy link

juseph-dan commented Oct 3, 2018

i am getting this error while runnig "Decoder_Spatial_CNN.py"

@juseph-dan juseph-dan changed the title while running CNN_feed.py i am getting this error ValueError: The passed save_path is not a valid checkpoint: model-spatial-11X11.ckpt-3999 Oct 3, 2018
@Sravani-Kalangi
Copy link

check in your directory of how the file has been saved, for example in mine it has been saved as model-spatial-CNN-21x21.ckpt-3999 when i had patch size=21.

@Linkersem
Copy link

i have another question while running "CNN_feed.py“. when i set the patch size =7,it shows this:

File "C:\Users\Administrator\Desktop\test\CNN_G.py", line 257, in
run_training()
File "C:\Users\Administrator\Desktop\test\CNN_G.py", line 166, in run_training
loss = IndianPinesCNN.loss(logits, labels_placeholder)
File "C:\Users\Administrator\Desktop\test\IndianPinesCNN.py", line 135, in loss
labels=labels, logits=logits, name='xentropy')
File "E:\python3.5\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2653, in sparse_softmax_cross_entropy_with_logits
logits.get_shape()))
ValueError: Shape mismatch: The shape of labels (received (100,)) should equal the shape of logits except for the last dimension (received (400, 16))

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

3 participants