Code Monkey home page Code Monkey logo

Comments (9)

pender avatar pender commented on September 24, 2024 1

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.

ButterscotchV avatar ButterscotchV commented on September 24, 2024 1

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.

AaronTan120 avatar AaronTan120 commented on September 24, 2024

I am having the same problem as well. May I know which version of Python you are using?

from chatbot-rnn.

kpratik2015 avatar kpratik2015 commented on September 24, 2024

Python 35.5.2

from chatbot-rnn.

nichcuta avatar nichcuta commented on September 24, 2024

@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.

VineethRaghavan avatar VineethRaghavan commented on September 24, 2024

@nichcuta Hey did you try training the model? If it worked, could you maybe upload it?

from chatbot-rnn.

jeshocarmel avatar jeshocarmel commented on September 24, 2024

@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.

birnbaum avatar birnbaum commented on September 24, 2024

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:

self.tensor = np.array(map(self.vocab.get, data))

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.

pender avatar pender commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.