Comments (7)
i tried this code
with tf.Session() as sess:
model = MY_Model(sess, len(vocab_embed_object.vocab_dict)-2)
selected_modelpath="./pretrained/model.ckpt.epoch-11"
print("Reading model parameters from %s" % selected_modelpath)
model.saver.restore(sess, selected_modelpath)
print("Model loaded.")
got this error
Unable to open table file ./pretrained/model.ckpt.epoch-11: Data loss: block checksum mismatch: perhaps your file is in a different file format and you need to use a different restore operator?
using python 2 and tensorflow 0.10.0rc0
from refresh.
You could use the author's code for loading the model. It works for me with python2 and tensorflow 0.10.0
from refresh.
from refresh.
I did used the author's code and only changed the directory name for the pre-trained model folder etc.
Are you running this on Windows? It seems that weird errors could occur with tensorflow on Windows.
Can you try to create a virtual environment then install the dependencies.
from refresh.
Can you try tensorflow 0.12 instead of 0.10.0rc0?
Check this link also: https://stackoverflow.com/questions/41048819/how-to-restore-a-model-by-filename-in-tensorflow-r12
from refresh.
turns out that the model file was not uploaded correctly on the instance,worked fine after reuploading .Thanks for the help
from refresh.
Thanks for helping one another guys. I have been a bit busy with the move.
from refresh.
Related Issues (20)
- What is the function of the weights in the code. HOT 3
- Different Result HOT 4
- some clarification in estimate_multiple_orcales.py HOT 1
- Number of testing documents for CNN. HOT 1
- What is multiple oracle? HOT 2
- How much is the test accuracy? HOT 1
- Lead3 rouge score HOT 1
- training set mainbody problem HOT 1
- 'gbk' codec can't encode character HOT 8
- Error in having the code worked in sample examples
- Process for test data
- You don't have permission to access /public/Refresh-NAACL18-1-billion-benchmark-wordembeddings.tar.gz on this server.
- DuplicateFlagError: The flag 'tmp_directory' is defined twice.
- size mismatch error in model_docsum.py in tf.concat HOT 1
- Does this code support Myanmar(Burmese) language summarization?
- Dimension mismatch problem HOT 1
- Links in README.md are broken
- got shape [60,20,110,2], but wanted [61]
- TypeError: 'range' object does not support item assignment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refresh.