Skip to content

Instantly share code, notes, and snippets.

@cescigl
cescigl / min-char-rnn.py
Created June 30, 2016 07:53 — 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)
@cescigl
cescigl / VGG-Face-keras.md
Created July 22, 2016 09:41 — forked from EncodeTS/keras VGG-Face Model.md
VGG-Face model for keras

VGG-Face model for Keras

This is the Keras model of VGG-Face.

It has been obtained through the following steps:

  • export the weights of the vgg-face matconvnet model to .mat file
  • use scipy to load the weights,and convert the weight from tf mode to th mode
  • set the weights to keras model and then save the model