Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Teknopolitica
    @teknopol_twitter
    there s someone?
    i ve tried char-rn-tensorflow
    but i dont undestand
    after give "python sample.py"
    is there somewhere a file with generated text?
    ubergarm
    @ubergarm
    hello!
    @teknopol_twitter the basic idea is:
    1) run python train.py
    and let it go through enough iterations to save a model checkpoint, the default is 1000
    then you can cntr+c to exit
    2) run python sample.py and it will spit out some text to the screen
    if you want to save the output, you can do python sample.py | tee output.txt or similar
    Teknopolitica
    @teknopol_twitter
    ok
    that s the output via terminal.

    (tensorflow) gambit@gambit-PC:~/rnn-tensorflow$ python sample.py§

    Traceback (most recent call last):
    File "sample.py", line 102, in <module>
    main()
    File "sample.py", line 58, in main
    with open(os.path.join(args.init_dir, 'result.json'), 'r') as f:
    IOError: [Errno 2] No such file or directory: 'result.json'

    (after train, obvios)
    @ubergarm
    Teknopolitica
    @teknopol_twitter
    i mean, i have to create some result.json by me? and what s to write inside?
    ubergarm
    @ubergarm
    @teknopol_twitter i'm confused, char-rnn-tensorflow/sample.py is only ~46 lines.
    have you tried the latest version of the code? hash 5029173 is working fine for me and also passes travis ci build
    my hunch is you're using an older version? the latest uses .pkl files not .json
    also i too am a fan of Marvel's Gambit! I played that character in an RPG many years ago, haah
    Ammar Asmro
    @ammarasmro
    Hello everyone,
    How can I edit this code to do word by word predictions rather than character by character
    ubergarm
    @ubergarm
    hello @ammarasmro
    possibly read up on encoding in general e.g. character, word, or sub-word vocabulary mapping into vector space
    ubergarm
    @ubergarm
    Also check how this repo does this by tokenizing the input into a fixed number of vocab: https://github.com/google/seq2seq/blob/master/docs/nmt.md#data-format
    i believe char-rnn-tensorflow uses each character as one of the vocab. i haven't played around with different pre-parsers
    Sébastien Rombauts
    @SRombauts
    Hi there! Hi @sherjilozair and @ubergarm
    I am quite new on neural network, and total noob with Tensorflow.
    I've found this repo and started to work with it a week ago, and would like to help improve it.
    With my new eye on the subject, I could help point the few little thing that would benefit from some more polish;
    Sébastien Rombauts
    @SRombauts
    1. README and cmd line help could be improved easily
    1. some issues/PR should be closed quickly to help focus on what is useful
    1. then we should complement the roadmap with more specific/detailed missing features
    Sébastien Rombauts
    @SRombauts
    For instance, I believe that having some (optional) test/validation data would be nice (issue #33)
    Jonathan Gan
    @metamercurial
    Hi, I just started playing around with char-rnn-tensorflow and was wondering why did you choose to use an encoder-decoder model along with sequence_loss_by_example? Is it also possible (and ideal) to use static_rnn and softmax cross entropy with logits respectively?
    mbc
    @mbcltd
    Hi @sherjilozair I am playing around with the OpenAI RfR 'Train a language model on a jokes corpus' and have forked char-rnn-tensorflow to act as a starting point for playing around with the problem space. I hope this is ok, I've observed the MIT licence and kept your copyright notice
    mbc
    @mbcltd
    At the moment it's still not very funny, the best joke that it has come up with is "your mom is unit unblong?"
    I wanted to say thanks for your work on this too, it's been a great starting point for generative RNNs on tensorflow
    DusterJack
    @DusterJack
    Hi @sherjilozair ,I was running your char-rnn tensorflow could you tell me how to sample in for a specific checkpoint
    GoldK9
    @K9_PVP_twitter
    Hello, everyone! Have someone dealt with grid-lstm for chars? I work in university and I really need vector of research on this topic. char-rnn-tensorflow (lstm) is cool, but it's not enough. Relly hope for your help, thanks!
    curator23
    @curator23
    Hi, has anyone had success in directly replicating char-rnn? I ask because I attempted a tensorflow implementation Jan'17 but I was unable to get good output as described by char-rnn. I've only just now got Torch7 working to validate char-rnn's performance (and, indeed, it works as described). So now I can either learn Torch, or, if this project works the same way, I can continue with Tensorflow using this codebase.
    Cheers!
    Peter Kirn
    @peterkirn
    maybe this is a python 3.5.4 + windows issue here? train.py works fine, but sample.py gets lost on encoding File "C:\Users\peter\AppData\Local\Programs\Python\Python35\lib\encodings\cp437.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
    UnicodeEncodeError: 'charmap' codec can't encode character '\xc8' in position 1: character maps to <undefined>
    Peter Kirn
    @peterkirn
    okay - got it, seems that's in fact a 3.5 problem, solved with 3.6 :)
    seems also there's a conflict on windows with CUDA support, that is 3.6 + CUDA tensorflow don't work ... but that may be a tf issue, not char-rnn
    TonyWang
    @tonywangcn
    Hi guys, has anyone tried to transform the model to pb.model and serve it with tensorflow serving framework?
    confusing about find the output node name from more than 10000 nodes name sherjilozair/char-rnn-tensorflow#122