Restoring Tensorflow Models

I was restoring a saved model in Tensorflow 1.5 when I was getting the error below.

DataLossError (see above for traceback): Unable to open table file …: Data loss: not an sstable (bad magic number):

Checkpoint v2 saves the checkpoint as 3 files (*.data-00000-of-00001, *.index, *.meta). So when restoring the checkpoint remove the extension and just use the filename *.ckpt

Orville

Advertisement

Fixing Python Errors When Installing Tensorflow on El Capitan

While installing TensorFlow on a Mac running El Capitan I kept getting one of those crazy Python errors that are impossible to decipher. Thanks to Stackoverflow which always saves me while coding I found out the problem. It is apparently “due to the System Integrity Protection introduced in OS X El Capitan.” The fix is copied below for the next time I run into this error. Thank you for the tipĀ Kof.

sudo pip install --upgrade $TF_BINARY_URL --user python