model_fcn.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Keras-FCN 作者: theduynguyen 项目源码 文件源码
def testnet_fcn(n_classes):
    stride = 32
    input_tensor = Input(shape=(None, None, 3))
    x = Convolution2D(4,5,5,name='conv',
                    activation = 'relu', border_mode='same', subsample= (stride,stride))(input_tensor)

    x = Softmax4D(axis=-1)(x)
    x = UpSampling2D(size=(stride,stride))(x)
    x = Convolution2D(n_classes,3,3,name = 'pred_up',border_mode = 'same')(x)

    model = Model(input=input_tensor,output=x)

    return model, stride
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号