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

How to run sample.py? #13

Open
nawb opened this issue Dec 3, 2016 · 4 comments
Open

How to run sample.py? #13

nawb opened this issue Dec 3, 2016 · 4 comments

Comments

@nawb
Copy link

nawb commented Dec 3, 2016

When I run python sample.py it just hangs. What should I expect? How long should I be waiting?

My understanding of sample.py is that it's the tester..so why is it training again?

@domerin0
Copy link
Owner

domerin0 commented Dec 5, 2016

When you run

$ python sample.py --checkpoint_dir="data/pathtocheckpoint/"

It will load the model and have a prompt something like:

>

This might appear like it is hanging, but is actually expected behaviour. You can type in what you want to say to the bot and hit enter. It will generate a response. It takes a lot of training to get anything sensible out of it.

@domerin0
Copy link
Owner

domerin0 commented Dec 5, 2016

I will update the README to better reflect this information (then close this issue). If this isn't clear, or if it isn't doing what you think it should be doing feel free to post here/re-open the issue.

@CruelAlpha
Copy link

Hi,
I was wondering if the format should be something like:
python sample.py --checkpoint_dir="data/checkpoints/numlayers_2_hsize_200_vsize_40000_max_tlength_50_max_slength_75/hyperparams.p"

@domerin0
Copy link
Owner

domerin0 commented Oct 3, 2017

Hi, I am in the process of updating the sample.py script. Unfortunately I updated the rest of the project but neglected it. I will need to push an update to get sample.py working as expected. I'll reopen this issue in the meantime.

@domerin0 domerin0 reopened this Oct 3, 2017
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