Giter Site home page Giter Site logo

Comments (20)

chrismpalmer avatar chrismpalmer commented on June 18, 2024 8

@Graystripe17 That was the problem. I am training now.

So if anyone else comes accross this. I fixed it by changing seq2seq_model to

import data_utils instead of the tensor flow one.

from tensorflow_chatbot.

chrismpalmer avatar chrismpalmer commented on June 18, 2024 4

@Graystripe17 thanks a lot. I do notice there is a local data_utils and seq2seq_model imports a tensor flow one. I wonder if this is intended.

from tensorflow_chatbot.

ImGokulM avatar ImGokulM commented on June 18, 2024 4

Worked!
As @Graystripe17 said, in seq2seq_model.py you need to replace the line #28
'from tensorflow.models.rnn.translate import data_utils' with 'import data_utils'.
Thanks @Graystripe17!

from tensorflow_chatbot.

athuldevin avatar athuldevin commented on June 18, 2024 3

i have the same issue and i applied the fix it works ,but it throws another error for both train and test

Mode : test

Traceback (most recent call last):
File "C:\Users\win-7\Downloads\Compressed\tensorflow_chatbot-master\execute.py", line 322, in
decode()
File "C:\Users\win-7\Downloads\Compressed\tensorflow_chatbot-master\execute.py", line 211, in decode
model = create_model(sess, True)
File "C:\Users\win-7\Downloads\Compressed\tensorflow_chatbot-master\execute.py", line 104, in create_model
model = seq2seq_model.Seq2SeqModel( gConfig['enc_vocab_size'], gConfig['dec_vocab_size'], _buckets, gConfig['layer_size'], gConfig['num_layers'], gConfig['max_gradient_norm'], gConfig['batch_size'], gConfig['learning_rate'], gConfig['learning_rate_decay_factor'], forward_only=forward_only)
File "C:\Users\win-7\Downloads\Compressed\tensorflow_chatbot-master\seq2seq_model.py", line 98, in init
single_cell = tf.nn.rnn_cell.GRUCell(size)
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'rnn_cell'

from tensorflow_chatbot.

Graystripe17 avatar Graystripe17 commented on June 18, 2024 1

@RathanakSreang if you try to go in and change the import a dozen of other changes spring up. If you want to use the latest version, wait for TF1.1 because I messaged some of the workers at TF and they promised to move the modules back

from tensorflow_chatbot.

sujeet1747 avatar sujeet1747 commented on June 18, 2024 1

You can uninstall using the following shell script___
sudo pip uninstall tensorflow
and roll back by ____
sudo pip install tensorflow==0.12

from tensorflow_chatbot.

sujeet1747 avatar sujeet1747 commented on June 18, 2024 1

The conversation were gibberish. One I'd like to mention

Where are you ?
orgy orgy orgy orgy orgy orgy orgy orgy orgy orgy orgy orgy

Where is the error, folks ?

from tensorflow_chatbot.

ynakashio avatar ynakashio commented on June 18, 2024 1

I'm getting the same problem....

from tensorflow_chatbot.

Graystripe17 avatar Graystripe17 commented on June 18, 2024

Use TensorFlow 0.12.0 instead of TensorFlow 1.0.0

from tensorflow_chatbot.

RathanakSreang avatar RathanakSreang commented on June 18, 2024

@Graystripe17
do you have other solution beside using old version?

from tensorflow_chatbot.

chrismpalmer avatar chrismpalmer commented on June 18, 2024

Friends! I am running 0.12.0 and getting this same problem. I appear to have the right config. I am using the tensorflow docker 0.12.0 so everything should be intact perhaps its built on a release candidate.

from tensorflow_chatbot.

Graystripe17 avatar Graystripe17 commented on June 18, 2024

@chrismpalmer You using python 2.7?

from tensorflow_chatbot.

chrismpalmer avatar chrismpalmer commented on June 18, 2024

@Graystripe17 yes

root@5d8738fee03e:/notebooks# python --version
Python 2.7.6

from tensorflow_chatbot.

Graystripe17 avatar Graystripe17 commented on June 18, 2024

@chrismpalmer I'm sorry I don't really have a good solution for you. If it's the exact same installation, I don't think it should be giving you this particular error. I used virtualenv and am not familiar with docker. Maybe give that a shot?

from tensorflow_chatbot.

ImGokulM avatar ImGokulM commented on June 18, 2024

I'm also getting the same error,

Traceback (most recent call last):
File "execute.py", line 31, in
import seq2seq_model
File "\tensorflow_chatbot-master\seq2seq_model.py", line 28, in
from tensorflow.models.rnn.translate import data_utils
ImportError: No module named 'tensorflow.models'

Please help if anyone fixed this.

from tensorflow_chatbot.

Graystripe17 avatar Graystripe17 commented on June 18, 2024

@ImGokulM @chrismpalmer No problem! @AnupKumarGupta If this solved your issue, you can close this.

from tensorflow_chatbot.

roveneliah avatar roveneliah commented on June 18, 2024

I'm getting the same thing as @athuldevin after fixing line 28. Any ideas on what this could possibly be?

from tensorflow_chatbot.

jmoney4769 avatar jmoney4769 commented on June 18, 2024

See #46 on how to get it working with 1.2. Also the Tensorflow release notes talk about where packages get moved to.

from tensorflow_chatbot.

LockGit avatar LockGit commented on June 18, 2024

I'm getting the same thing as @AnupKumarGupta .
use tensorflow docker container
Python 2.7.12

from tensorflow_chatbot.

LockGit avatar LockGit commented on June 18, 2024

thx

from tensorflow_chatbot.

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.