"Mxnet"의 두 판 사이의 차이
ph
잔글 (→Basics) |
잔글 (→etc) |
||
(같은 사용자의 중간 판 39개는 보이지 않습니다) | |||
3번째 줄: | 3번째 줄: | ||
뭘 이렇게들 만들어 대는지. [https://www.tensorflow.org tf]가 맘에 안들기는 하지만. | 뭘 이렇게들 만들어 대는지. [https://www.tensorflow.org tf]가 맘에 안들기는 하지만. | ||
− | + | [[Mxnet/Basics]] | |
− | |||
− | + | [[Mxnet/Training and Inference]] | |
− | + | ==etc== | |
− | + | * batch normalization example | |
− | + | <pre>def ConvFactory(data, num_filter, kernel, | |
− | + | stride=(1,1), pad=(0, 0),name=None, suffix=''): | |
− | + | conv = mx.sym.Convolution(data=data, | |
− | + | num_filter=num_filter, | |
− | + | kernel=kernel, | |
− | + | stride=stride, | |
− | + | pad=pad, | |
− | + | name='conv_%s%s' %(name, suffix)) | |
− | + | bn = mx.sym.BatchNorm(data=conv, name='bn_%s%s' %(name, suffix)) | |
− | + | act = mx.sym.Activation(data=bn, act_type='relu', name='relu_%s%s' | |
− | + | %(name, suffix)) | |
− | + | return act</pre> | |
− | + | * feature extraction | |
− | + | **[https://github.com/dmlc/mxnet/blob/master/docs/tutorials/python/predict_image.md Predict with pre-trained models] | |
− | + | ** [http://mxnet.io/how_to/finetune.html#train How do I fine-tune pre-trained models to a new dataset?] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
2017년 7월 4일 (화) 19:06 기준 최신판
뭘 이렇게들 만들어 대는지. tf가 맘에 안들기는 하지만.
etc
- batch normalization example
def ConvFactory(data, num_filter, kernel, stride=(1,1), pad=(0, 0),name=None, suffix=''): conv = mx.sym.Convolution(data=data, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_%s%s' %(name, suffix)) bn = mx.sym.BatchNorm(data=conv, name='bn_%s%s' %(name, suffix)) act = mx.sym.Activation(data=bn, act_type='relu', name='relu_%s%s' %(name, suffix)) return act