xue2han / ancientchinesepoemrnn Goto Github PK
View Code? Open in Web Editor NEWRNN for Ancient Chinese Poems
RNN for Ancient Chinese Poems
您好!
我在执行sample.py的时候产生了这个错误,看之前的issue我已经把tensorflow的版本换成0.11了。请问是什么原因?
谢谢~~
你好,谢谢你提供的demo, 不知你是否就是'斗大的熊猫', 反正是真的谢谢了.
我认真的读了原码,发现在生成古诗的函数中,有一个子函数: pick_char(weights). 这是一个随机函数啊, 正常应该是取argmax()啊, 但我修改后,发现进入死循环.
应用pick_char(weights)确实可以避开死循环,不过pick_char因为是随机,也使得训练变得没有意义了~
您好,报这个错。没有这个文件啊
风入洞庭累,和名匪并亲。日作禅楼末,丽慨*稚*。
风烂嵯峨古十旬,和音写断围中盏。日见春风又满林,丽句君邀**名。
有尽众一身,爱他遗便素。千龄何累休一会,两f啸琴却前归。
UNKNOWN CHAR照理来说不应该在古诗里面生成把
大佬,有没有python3的版本,现在window gpu版好像只有py3,训练好了跑出来是一堆乱码。
好像是字符编码的原因吗?看不太懂怎么改
谢谢大佬~
可以看到,每次model save之后, loss都会突然增多,这是不正常的现象吧。。
model saved to save/model.ckpt
14111/26880 (epoch 41), train_loss = 5.211, time/batch = 0.103
14447/26880 (epoch 42), train_loss = 5.204, time/batch = 0.115
14783/26880 (epoch 43), train_loss = 5.198, time/batch = 0.104
15000/26880 (epoch 44), train_loss = 4.577, time/batch = 0.067
model saved to save/model.ckpt
15119/26880 (epoch 44), train_loss = 5.192, time/batch = 0.105
15455/26880 (epoch 45), train_loss = 5.187, time/batch = 0.105
15791/26880 (epoch 46), train_loss = 5.182, time/batch = 0.107
16000/26880 (epoch 47), train_loss = 4.723, time/batch = 0.071
model saved to save/model.ckpt
16127/26880 (epoch 47), train_loss = 5.176, time/batch = 0.107
16463/26880 (epoch 48), train_loss = 5.172, time/batch = 0.109
16799/26880 (epoch 49), train_loss = 5.167, time/batch = 0.108
17000/26880 (epoch 50), train_loss = 4.570, time/batch = 0.071
model saved to save/model.ckpt
17135/26880 (epoch 50), train_loss = 5.163, time/batch = 0.108
17471/26880 (epoch 51), train_loss = 5.158, time/batch = 0.108
17807/26880 (epoch 52), train_loss = 5.154, time/batch = 0.108
18000/26880 (epoch 53), train_loss = 4.672, time/batch = 0.065
model saved to save/model.ckpt
18143/26880 (epoch 53), train_loss = 5.150, time/batch = 0.106
18479/26880 (epoch 54), train_loss = 5.146, time/batch = 0.108
18815/26880 (epoch 55), train_loss = 5.142, time/batch = 0.107
19000/26880 (epoch 56), train_loss = 4.250, time/batch = 0.052
model saved to save/model.ckpt
19151/26880 (epoch 56), train_loss = 5.139, time/batch = 0.107
C:\LAWHCA\prime>python sample.py
WARNING:tensorflow:From sample.py:35 in sample.: initialize_all_variables (from
tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03
-02.
Instructions for updating:
Use tf.global_variables_initializer
instead.
WARNING:tensorflow:From sample.py:36 in sample.: all_variables (from tensorflow.
python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Please use tf.global_variables instead.
WARNING:tensorflow:reached end of file
WARNING:tensorflow:save\checkpoint: Checkpoint ignored
None
Traceback (most recent call last):
File "sample.py", line 45, in
main()
File "sample.py", line 26, in main
sample(args)
File "sample.py", line 39, in sample
print(ckpt.model_checkpoint_path)
AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'
C:\LAWHCA\prime>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.