Comments (9)
Hi everyone, the repo was developed with Tensorflow 0.12 and Python 2.7. Unfortunately Tensorflow 1.0 broke many of the APIs that the model relied on. I have a build on my machine that updates the code to TF >1.0 and Python 3.5, but then the pretrained model no longer loads since the variable names have changed. At some point I will get around to either fixing the variable names in the pretrained model or retraining a new model... but for now it is broken, and retraining a model takes months of GPU time (at least with the best hyperparameters that I was able to find).
I'm sorry!
from chatbot-rnn.
I've worked off of @zenixls2's update to TensorFlow 1.2 to update the project to Python 3.5. I have put the code here, https://github.com/Dankrushen/chatbot-rnn, and you should be able to do everything except parse the Reddit comments (I'm open if anyone can fix that, but you should just be able to run it on Python 2.7).
from chatbot-rnn.
I am having the same problem as well. May I know which version of Python you are using?
from chatbot-rnn.
Python 35.5.2
from chatbot-rnn.
@pender I am willing to give it a try and train against my GPU, what are the best hyper parameters that you found if i may ask (IE: Learning rate, decay rate, num layers, etc..)?
Thanks!
from chatbot-rnn.
@nichcuta Hey did you try training the model? If it worked, could you maybe upload it?
from chatbot-rnn.
@pender Do you mind sharing the updated code which you have with Tensorflow > 1.0 and Python 3.5. I would like to train a model of movie subtitles from opensubtitles in my GPU. Also do share the hyperparameters which would make our job easier. Thanks
from chatbot-rnn.
As @pender stated there are a few things you have to change to get the project running on tensorflow 1.x and python 3. This specific bug can be fixed by changing:
Line 148 in a60a56e
to
self.tensor = np.array(list(map(self.vocab.get, data)))
Otherwise you feed np.array() a generator (in python 3, map() returns a generator). I may issue a PR with all the changes you have to do to the project soon.
from chatbot-rnn.
Hi, I pushed a significant update to TF 1.4 and Python3, so I am closing out old issues -- feel free to reopen if this is still a problem, and I will take a look. (reddit-parse.py
has also been updated to Python 3 now.)
from chatbot-rnn.
Related Issues (20)
- Speed up inference HOT 1
- reddit_parse error HOT 1
- Using this bot on discord HOT 2
- Training on GPU? HOT 4
- Unable to run chatbot.py. Throwing error on tensorflow HOT 13
- Link to your pre trained not reachable HOT 3
- Unable to run chatbot.py.Getting an error
- Using the Pre-Trained Model for Regression
- Weird Unreadable Response HOT 2
- Error with reddit-parser HOT 123
- Issue with train.py - error loading data
- Question: HOT 1
- Even the checkpont file is in the correct directory it is not identifying it HOT 5
- Chatbot output russian chars issue HOT 1
- question chatbot HOT 2
- no module named tensorflow.contrib HOT 7
- requirements.txt HOT 1
- Parse Reddit Corpus in zip format
- Parse Reddit Corpus in zip format
- Can I delete old ckpt files when training?
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 chatbot-rnn.