提交 bc8ba1de 编写于 作者: Z zhuoyuan

modify light mnist file

上级 fd5c7700
...@@ -53,12 +53,7 @@ def light_cnn(input_image, num_channels, num_classes): ...@@ -53,12 +53,7 @@ def light_cnn(input_image, num_channels, num_classes):
tmp = __light__(tmp, num_filter=128) tmp = __light__(tmp, num_filter=128)
tmp = __light__(tmp, num_filter=128, conv_filter_size=1) tmp = __light__(tmp, num_filter=128, conv_filter_size=1)
#tmp = img_pool_layer(input=tmp, stride=2, pool_size=2, pool_type=MaxPooling())
#tmp = dropout_layer(input=tmp, dropout_rate=0.5)
tmp = fc_layer(input=tmp, size = num_classes, act=SoftmaxActivation()) tmp = fc_layer(input=tmp, size = num_classes, act=SoftmaxActivation())
# tmp = fc_layer(input=tmp, size=512, layer_attr=ExtraAttr(drop_rate=0.5), act=LinearActivation())
# tmp = batch_norm_layer(input=tmp, act=ReluActivation())
# return fc_layer(input=tmp, size=num_classes, act=SoftmaxActivation())
return tmp return tmp
predict = light_cnn(input_image=img, num_channels=1, num_classes=label_size) predict = light_cnn(input_image=img, num_channels=1, num_classes=label_size)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册