在caffe中融合不同的输入通道?
Fusing different input channels in caffe?
我想先分别处理不同类型的数据,然后将它们融合在一个公共层中。这在 Caffe 中可行吗?如果可行,最好的方法是什么?
我听说可以在同一个 prototxt 文件中定义多个数据层。但是如何融合呢?
我可以只创建一个 InnerProduct
层并指定几个 bottom
层吗?或者我是否必须先使用 Concat
层连接各个层?
对于任何小代码示例,我将非常感激!
正如上面评论中所讨论的,InnerProduct
使用单个输入。然后可以在特定的 Concat
层中进行融合(串联),配置如下:
layer {
name: "concat"
bottom: "in1"
bottom: "in2"
top: "out"
type: "Concat"
concat_param {
axis: 1
}
}
官方文档有关于该层的更多详细信息:http://caffe.berkeleyvision.org/tutorial/layers.html
我想先分别处理不同类型的数据,然后将它们融合在一个公共层中。这在 Caffe 中可行吗?如果可行,最好的方法是什么?
我听说可以在同一个 prototxt 文件中定义多个数据层。但是如何融合呢?
我可以只创建一个 InnerProduct
层并指定几个 bottom
层吗?或者我是否必须先使用 Concat
层连接各个层?
对于任何小代码示例,我将非常感激!
正如上面评论中所讨论的,InnerProduct
使用单个输入。然后可以在特定的 Concat
层中进行融合(串联),配置如下:
layer {
name: "concat"
bottom: "in1"
bottom: "in2"
top: "out"
type: "Concat"
concat_param {
axis: 1
}
}
官方文档有关于该层的更多详细信息:http://caffe.berkeleyvision.org/tutorial/layers.html