Comments (20)
@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.
@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.
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.
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.
@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.
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.
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.
I'm getting the same problem....
from tensorflow_chatbot.
Use TensorFlow 0.12.0 instead of TensorFlow 1.0.0
from tensorflow_chatbot.
@Graystripe17
do you have other solution beside using old version?
from tensorflow_chatbot.
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.
@chrismpalmer You using python 2.7?
from tensorflow_chatbot.
@Graystripe17 yes
root@5d8738fee03e:/notebooks# python --version
Python 2.7.6
from tensorflow_chatbot.
@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.
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.
@ImGokulM @chrismpalmer No problem! @AnupKumarGupta If this solved your issue, you can close this.
from tensorflow_chatbot.
I'm getting the same thing as @athuldevin after fixing line 28. Any ideas on what this could possibly be?
from tensorflow_chatbot.
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.
I'm getting the same thing as @AnupKumarGupta .
use tensorflow docker container
Python 2.7.12
from tensorflow_chatbot.
thx
from tensorflow_chatbot.
Related Issues (20)
- migrate to tensorflow 2.10
- encoder data /train.enc no data found HOT 2
- delete
- Data File and All of its Contents Missing
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 60: invalid continuation byte
- InvalidArgumentError: indices[40] = 2000 0 is not in [0, 20000) HOT 2
- Tensorflow Variable scope issue HOT 3
- Error messages, please help
- ValueError: Decoder length must be equal to the one in bucket, 1 != 25.
- No source found error while try to run execute.py.I do have vocab decoder and encoder data in working dir
- how to train my own data HOT 1
- Cornell Movie Dialog Dataset
- Issue with Global Step Iteration
- change test decoder path
- ERROR IN HOT 2
- GPUOptions' object has no attribute 'allocator_type'
- AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__' HOT 1
- ERROR : python excute.py
- rlanesdoonn HOT 1
- Py to Exe HOT 1
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 tensorflow_chatbot.