Comments (5)
我刚刚解决了这个bug,还是api不匹配的问题,我都列举出来吧:
s2s_model.py
:
54行:def sampled_loss(inputs, labels):
里面input
和labels
对调(就是这个导致了本issue的错误)
62-63行:参数改为:
weights=local_w_t,
biases=local_b,
labels=labels,
inputs=local_inputs,
num_sampled=num_samples,
num_classes=self.target_vocab_size
71行:tf.nn.seq2seq.embedding_attention_seq2seq(
改为tf.contrib.legacy_seq2seq.embedding_attention_seq2seq(
31-33行: tf.nn.rnn_cell.*
改为tf.contrib.rnn.*
113、132行:tf.nn.seq2seq.model_with_buckets(
改为tf.contrib.legacy_seq2seq.model_with_buckets(
现在正在训练,如果还弹错我再来更新~
from seq2seq_chatbot_qa.
BTW, readme里面介绍的数据集dgk_shooter_min.conv
已经没有了,我改用的那个小黄鸡分词版xiaohuangji50w_fenciA.conv.zip
,不知道是不是这个原因(估计不是
from seq2seq_chatbot_qa.
tensorflow的改动特别过分,代码需要很多修改才行
原repo的字幕没有没有可以看这个fork https://github.com/qhduan/dgk_lost_conv
from seq2seq_chatbot_qa.
好的,如果可以用可以考虑写一个merge request,我开一个tensorflow 1.x分支之类的
from seq2seq_chatbot_qa.
补充一下:
所有的tf.all_variables()改为tf.global_variables()
所有的tf.initialize_all_variables()改为tf.global_variables_initializer()
from seq2seq_chatbot_qa.
Related Issues (20)
- 大神,请问训练好的model能提供下吗
- 请问windows下面运行s2s.py进行训练,报ValueError: Attempt to reuse RNNCell 的错误 HOT 5
- 是版本問題嗎?
- 请问可以提供训练好的模型吗
- 智能问答数据
- 训练结果有问题 HOT 1
- 五步完成如何进行对话? HOT 3
- Error
- 在windows的git bash 中训练得到的模型测试时输出是乱码 HOT 1
- 没有./model/model1/model文件夹? HOT 3
- s2s.py: b359702d5c6d0ae21bef6cd2efab52a0d84af7aa版本的一个小问题
- s2s一个小bug
- 执行s2s时报错 HOT 2
- 你好,我这边修复了部分bug HOT 1
- 语料的使用问题 HOT 1
- windows下执行train_model.bat无法进入训练模式 HOT 1
- 语料库下载很慢,总是中断,有百度云资源吗
- 请教!交流下词典大小造成的问题
- 作者你好,s2s训练出错找不到数据库
- 这东西还能用吗??
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 seq2seq_chatbot_qa.