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

sample.py error #18

Open
lymanyoung opened this issue Aug 24, 2017 · 3 comments
Open

sample.py error #18

lymanyoung opened this issue Aug 24, 2017 · 3 comments

Comments

@lymanyoung
Copy link

Traceback (most recent call last):
File "sample.py", line 101, in
main()
File "sample.py", line 32, in main
model = load_model(sess, FLAGS.checkpoint_dir)
File "sample.py", line 79, in load_model
hidden_size=FLAGS.hidden_size,
File "/Users/LymanYoung/anaconda3/lib/python3.5/site-packages/tensorflow/python/platform/flags.py", line 50, in getattr
raise AttributeError(name)
AttributeError: hidden_size

@domerin0
Copy link
Owner

Hello, I'm aware of problem in the sampling script. I updated the rest of the project for tensorflow 1.1. In doing so I hadn't updated the sampling script yet. Expect an update to it sometime this week. I think your other issue is related to this as well.

@DhruvMevada
Copy link

Traceback (most recent call last):
File "C:\Users\dhruv.mevada\Downloads\neural-chatbot-master\neural-chatbot-master\sample.py", line 101, in
main()
File "C:\Users\dhruv.mevada\Downloads\neural-chatbot-master\neural-chatbot-master\sample.py", line 32, in main
model = load_model(sess, FLAGS.checkpoint_dir)
File "C:\Users\dhruv.mevada\Downloads\neural-chatbot-master\neural-chatbot-master\sample.py", line 72, in load_model
params = hyper_params.restore_hyper_params(path)
File "C:\Users\dhruv.mevada\Downloads\neural-chatbot-master\neural-chatbot-master\util\hyperparamutils.py", line 13, in restore_hyper_params
with open(file_path, 'rb') as handle:
FileNotFoundError: [Errno 2] No such file or directory: 'data/checkpoints/1461979205hiddensize_100_dropout_0.5_numlayers_1\hyperparams.p'

@643245611
Copy link

Hello, have you solved the problem? I have the same problem. Please give me some advice.

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

4 participants