Giter Site home page Giter Site logo

ancientchinesepoemrnn's People

Contributors

embbnux avatar xue2han avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ancientchinesepoemrnn's Issues

pick_char(weights) 使训练变得无意义~

你好,谢谢你提供的demo, 不知你是否就是'斗大的熊猫', 反正是真的谢谢了.

我认真的读了原码,发现在生成古诗的函数中,有一个子函数: pick_char(weights). 这是一个随机函数啊, 正常应该是取argmax()啊, 但我修改后,发现进入死循环.
应用pick_char(weights)确实可以避开死循环,不过pick_char因为是随机,也使得训练变得没有意义了~

诗句中有* 或英文字母是为什么呢

风入洞庭累,和名匪并亲。日作禅楼末,丽慨*稚*。
风烂嵯峨古十旬,和音写断围中盏。日见春风又满林,丽句君邀**名。
有尽众一身,爱他遗便素。千龄何累休一会,两f啸琴却前归。

有没有python3的版本?

大佬,有没有python3的版本,现在window gpu版好像只有py3,训练好了跑出来是一堆乱码。
好像是字符编码的原因吗?看不太懂怎么改
谢谢大佬~

每次save model之后loss都会突然提升

可以看到,每次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

您好 在train的时候没有问题 为什么在sample的时候出现了这个错误呢 ckpt为什么是空的呢

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>

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.