• caffe to tensorflow alexnet model


    from kaffe.tensorflow import Network
    
    class AlexNet(Network):
        def setup(self):
            (self.feed('data')
                 .conv(11, 11, 96, 4, 4, padding='VALID', name='conv1')
                 .lrn(2, 1.99999994948e-05, 0.75, name='norm1')
                 .max_pool(3, 3, 2, 2, padding='VALID', name='pool1')
                 .conv(5, 5, 256, 1, 1, group=2, name='conv2')
                 .lrn(2, 1.99999994948e-05, 0.75, name='norm2')
                 .max_pool(3, 3, 2, 2, padding='VALID', name='pool2')
                 .conv(3, 3, 384, 1, 1, name='conv3')
                 .conv(3, 3, 384, 1, 1, group=2, name='conv4')
                 .conv(3, 3, 256, 1, 1, group=2, name='conv5')
                 .max_pool(3, 3, 2, 2, padding='VALID', name='pool5')
                 .fc(4096, name='fc6')
                 .fc(4096, name='fc7')
                 .fc(1000, relu=False, name='fc8')
                 .softmax(name='prob'))                                           
  • 相关阅读:
    django 常用命令
    nginx+gunicorn
    终于决定写个技术博客
    test
    自定义控件
    .net mvc 发布部署到机器上
    C# StringExt 字符串扩展
    MYSQL连接数据库
    List IEnumerable
    CentOS安装pip
  • 原文地址:https://www.cnblogs.com/bonelee/p/8488630.html
Copyright © 2020-2023  润新知