mxnet由resnet换向alexnet时候出现问题
来源:互联网 发布:免费的网络推手 编辑:程序博客网 时间:2024/05/06 13:44
调试参数解决:
import mxnet as mxdef get_symbol(num_classes, **kwargs): input_data = mx.symbol.Variable(name="data") # stage 1 conv1 = mx.symbol.Convolution( data=input_data, kernel=(11, 11), stride=(2, 2), num_filter=96) relu1 = mx.symbol.Activation(data=conv1, act_type="relu") pool1 = mx.symbol.Pooling( data=relu1, pool_type="max", kernel=(3, 3), stride=(2,2)) lrn1 = mx.symbol.LRN(data=pool1, alpha=0.0001, beta=0.75, knorm=1, nsize=5) # stage 2 conv2 = mx.symbol.Convolution( data=lrn1, kernel=(5, 5), pad=(2, 2), num_filter=256) relu2 = mx.symbol.Activation(data=conv2, act_type="relu") pool2 = mx.symbol.Pooling(data=relu2, kernel=(3, 3), stride=(2, 2), pool_type="max") lrn2 = mx.symbol.LRN(data=pool2, alpha=0.0001, beta=0.75, knorm=1, nsize=5) # stage 3 conv3 = mx.symbol.Convolution( data=lrn2, kernel=(1, 1), pad=(1, 1), num_filter=384) #参数调小了,原来为3 relu3 = mx.symbol.Activation(data=conv3, act_type="relu") conv4 = mx.symbol.Convolution( data=relu3, kernel=(1, 1), pad=(1, 1), num_filter=384) #参数调小了,原来为3 relu4 = mx.symbol.Activation(data=conv4, act_type="relu") conv5 = mx.symbol.Convolution( data=relu4, kernel=(1, 1), pad=(1, 1), num_filter=256) #参数调小了,原来为3 relu5 = mx.symbol.Activation(data=conv5, act_type="relu") pool3 = mx.symbol.Pooling(data=relu5, kernel=(3, 3), stride=(2, 2), pool_type="max") # stage 4 flatten = mx.symbol.Flatten(data=pool3) fc1 = mx.symbol.FullyConnected(data=flatten, num_hidden=4096) relu6 = mx.symbol.Activation(data=fc1, act_type="relu") dropout1 = mx.symbol.Dropout(data=relu6, p=0.5) # stage 5 fc2 = mx.symbol.FullyConnected(data=dropout1, num_hidden=4096) relu7 = mx.symbol.Activation(data=fc2, act_type="relu") dropout2 = mx.symbol.Dropout(data=relu7, p=0.5) # stage 6 fc3 = mx.symbol.FullyConnected(data=dropout2, num_hidden=num_classes) softmax = mx.symbol.SoftmaxOutput(data=fc3, name='softmax') return softmax调整以后训练结果不一定好,只是为了找寻换模型不通过的原因才调试
0 0
- mxnet由resnet换向alexnet时候出现问题
- Alexnet VGG GoogleNet ResNet
- LeNet、AlexNet、GoogLeNet、VGG、ResNet
- LeNet、AlexNet、GoogLeNet、VGG、ResNet
- AlexNet、GoogLeNet、VGGNet、ResNet对比
- Lenet、Alexnet 、VGG、 GoogleNet、ResNet模型
- #Deep Learning回顾#之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- CNN经典网络模型摘要--AlexNet、ZFnet、GoogleNet、VGG、ResNet
- LeNet、AlexNet、GoogLeNet、VGG、ResNetInception-ResNet-v2、FractalNet、DenseNet
- Deep Learning回顾#之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- Deep Learning回顾#之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- CNN经典网络模型摘要--AlexNet、ZFnet、GoogleNet、VGG、ResNet
- 计算机视觉识别简史:从 AlexNet、ResNet 到 Mask RCNN
- CNN经典网络模型摘要--AlexNet、ZFnet、GoogleNet、VGG、ResNet
- #Deep Learning回顾#之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- ResNet, AlexNet, VGG, Inception: 理解各种卷积网络的结构
- #Deep Learning回顾#之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- Deep Learning回顾之LeNet、AlexNet、GoogLeNet、VGG、ResNet
- Poj 3311 Hie with the Pie 【TSP+floyd】
- linux基础知识总结
- 关于css hack的技巧大全
- win7下iis配置网站外网无法访问
- Winter Is Coming(CF #387 Div. 2)
- mxnet由resnet换向alexnet时候出现问题
- 浅析Objective-C内存管理
- Lesson41 Do you call that a hat?
- ces
- eclipse代码自动提示设置、如何配置eclipse的代码自动提示功能?
- [Android6.0][RK3399] USB接口Touchscreen驱动流程分析
- 【技术分享】Necurs僵尸网络它又回来了,威力强大可进行DDoS攻击
- caffe初探之-特征提取
- oracle使用手册