Skip to content

Instantly share code, notes, and snippets.

@squiba
squiba / min-char-rnn.py
Created October 12, 2016 18:42 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@squiba
squiba / rnn-speech_error.txt
Created February 10, 2017 12:21
Error encountered while running rnn-speech trained model
$ python3 stt.py --file /home/squiba/ba-dls-deepspeech/LibriSpeech/dev-clean/2086/149220/2086-149220-0007.flac
INFO:root:Using checkpoint trained_models/acoustic_model/english
INFO:root:No hyper parameter changed detected, using old checkpoint...
INFO:root:Building model... (this takes a while)
INFO:root:Reading model parameters from trained_models/acoustic_model/english/acousticmodel.ckpt
W tensorflow/core/framework/op_kernel.cc:975] Out of range: Read less bytes than requested
W tensorflow/core/framework/op_kernel.cc:975] Out of range: Read less bytes than requested
W tensorflow/core/framework/op_kernel.cc:975] Out of range: Read less bytes than requested
W tensorflow/core/framework/op_kernel.cc:975] Out of range: Read less bytes than requested
W tensorflow/core/framework/op_kernel.cc:975] Out of range: Read less bytes than requested