Coder Social home page Coder Social logo

char-rnn-cn's People

Contributors

leido avatar winnerineast 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

char-rnn-cn's Issues

请问用的啥版本的TF?

刚才运行了下,报错了:

--Training--
Vocabulary Size:  2636
Traceback (most recent call last):
  File "gen_lyrics.py", line 196, in <module>
    main(infer)
  File "gen_lyrics.py", line 184, in main
    run_fn(data, model, args)
  File "gen_lyrics.py", line 124, in train
    sess.run(tf.global_variables_initializer())
AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'

请问生成很多重复的字符是什么原因呢

你的城魂 我想就这样牵着你的手不放开 爱能不能够永远单纯没有悲哀 可是你不在里 合:我们乘着阳光 你的眼中只有我 我不想输 不知不见 你就是不该 我不像已在事人已经不是我 我不想拆穿你 不过的温柔 双篱布 那感门 只有一种每一页 我也离去 我想是你不我再想 我不 我不 我不要再想 我不 我不 我不 我不 我不要再想 我不 我不 我不 我不 我不要再想 我不 我不 我不 我不 我不要再想 我不 我不 我不 我不 我不要再想

warm phrase还是用的“你要离开我知道很简单”

生成的真的是周杰伦歌词吗

I have two question.

the first one

训练的时候,使用的是红楼梦充当字典,并没有使用周杰伦的歌词,所以模型并没有周杰伦的歌词表达习惯。

the second one

生成的时候,把字典从红楼梦换到了周杰伦,模型没有做任何变化。如果周杰伦歌词的字要比红楼梦少,模型预测出来的词id超过了字典。那不会报越界的异常吗

hello leido

你的gen_lyrics.py 运行会报错 提示tensorflow:<tensorflow.python.ops.rnn_cell_BasicLSTMCell object at ox7f5d028cae10> 我是python 3.5 难道环境有问题?

Fail to run inference

I have tried training and inferencing in local server. The checkpoint files were generated but it failed to inference.

The error log looks like this.

screen shot 2016-11-29 at 18 19 20

tf-1.0

求更新,1.0的api有些用不了了

用了Active code page: 65001 無效

--Training--
Vocabulary Size: 2636
Traceback (most recent call last):
File "gen_lyrics.py", line 235, in
main(infer)
File "gen_lyrics.py", line 216, in main
data = DataGenerator('JayLyrics.txt', args)
File "gen_lyrics.py", line 51, in init
self.save_metadata(args.metadata)
File "gen_lyrics.py", line 64, in save_metadata
f.write('{}\t{}\n'.format(i, c))
UnicodeEncodeError: 'cp950' codec can't encode character '\u3007' in position 3: illegal multibyte sequence

您好,运行程序时出了问题,求助~

你好,我在本机上跑了你的程序,但是出了问题,提示如下:ValueError: Attempt to reuse RNNCell <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.BasicLSTMCell object at 0x10d307be0> with a different variable scope than its first use. First use of cell was with scope 'rnn/multi_rnn_cell/cell_0/basic_lstm_cell', this attempt is with scope 'rnn/multi_rnn_cell/cell_1/basic_lstm_cell'. Please create a new instance of the cell if you would like it to use a different set of weights. If before you were using: MultiRNNCell([BasicLSTMCell(...)] * num_layers), change to: MultiRNNCell([BasicLSTMCell(...) for _ in range(num_layers)]). If before you were using the same cell instance as both the forward and reverse cell of a bidirectional RNN, simply create two instances (one for forward, one for reverse). In May 2017, we will start transitioning this cell's behavior to use existing stored weights, if any, when it is called with scope=None (which can lead to silent model degradation, so this error will remain until then.)
请问您知道是哪里出了毛病吗?
电脑环境:Macos,python3.6,tensorflow1.1.0

InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [100,2636] rhs shape= [100,4553]

it occurs that InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [100,2636] rhs shape= [100,4553]
[[Node: save/Assign_15 = Assign[T=DT_FLOAT, _class=["loc:@rnnlm/softmax_w"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](rnnlm/softmax_w/Adam, save/RestoreV2_15)]]
when I run generate_text.py.

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.