Difference between revisions of "RNNs with Darknet"
Jump to navigation
Jump to search
(Created page with "== Installing Darknet == *We need to install our modified version of Darknet: *Darknet Installation == Using RNNs with Darknet == *Getting some calculated weights from s...") |
|||
Line 20: | Line 20: | ||
*Training with other corpus of text | *Training with other corpus of text | ||
− | *We can modify file cfg/rnn.train.cfg file (batch = 50 is the value we set by default) | + | *We can modify file cfg/rnn.train.cfg file (batch = 50 is the value we set by default, the original value was 256) |
*Some online corpus of text: | *Some online corpus of text: |
Revision as of 22:49, 4 January 2019
Installing Darknet
- We need to install our modified version of Darknet:
- Darknet Installation
Using RNNs with Darknet
- Getting some calculated weights from several writers:
wget https://pjreddie.com/media/files/shakespeare.weights wget https://pjreddie.com/media/files/kant.weights wget https://pjreddie.com/media/files/shakespeare.weights wget https://pjreddie.com/media/files/shakespeare.weights
- Generating new text
cd darknet ./darknet rnn generate cfg/rnn.cfg shakespeare.weights -srand 0
- Parameters:
-srand N -> N determines the random seed
- Training with other corpus of text
- We can modify file cfg/rnn.train.cfg file (batch = 50 is the value we set by default, the original value was 256)
- Some online corpus of text:
George Meredith http://www.gutenberg.org/ebooks/4500 Mark Twain http://www.gutenberg.org/ebooks/3200 More http://www.gutenberg.org/ebooks/search/?query=The+Complete+Works+of