Skip to content

Instantly share code, notes, and snippets.

View OsciiArt's full-sized avatar

OsciiArt OsciiArt

  • Japan
View GitHub Profile
@OsciiArt
OsciiArt / file0.py
Last active March 13, 2017 02:25
ディープラーニングでアスキーアートを作る ref: http://qiita.com/OsciiArt/items/325714d8ab3f2b482ced
def DeepAA(num_label=615, drop_out=0.5, weight_decay=0.001, input_shape = [64, 64]):
"""
Build Deep Neural Network.
:param num_label: int, number of classes, equal to candidates of characters
:param drop_out: float
:param weight_decay: float
:return:
"""
reg = l2(weight_decay)
imageInput = Input(shape=input_shape)