Hyperspectral icon indicating copy to clipboard operation
Hyperspectral copied to clipboard

ValueError: The passed save_path is not a valid checkpoint: model-spatial-11X11.ckpt-3999

Open juseph-dan opened this issue 6 years ago • 2 comments

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

juseph-dan avatar Oct 03 '18 04:10 juseph-dan

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.

Sravani-Kalangi avatar Apr 15 '19 15:04 Sravani-Kalangi

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))

Linkersem avatar May 24 '19 12:05 Linkersem