1
我想用另一幅圖像對圖像進行卷積。卷積,圖像上的圖像
model (fromImage,toImage) = {
fromImageCon= Convolution(toImage ,
fromImage,
(64:64:1),
stride=1,
autoPadding=(true:true:true),
mapDims=1
)
z = LinearLayer {labelDim} (fromImageCon)
}.z
我收到錯誤: 「異常:節點 'ol.toImageCon.res.x'(加操作):Minibatch數據不能被解釋爲一個單一的2D張量」
在圖像分析中,常常用另一幅圖像進行卷積和成像。我正在試圖製作一個網絡,可以在http://www.emgu.com/wiki/index.php/Pedestrian_Detection_in_CSharp 的大圖像中找到小圖像。爲了簡化操作,我除去了卷積圖層以外的所有其他圖層。 –
請注意,模型的輸入具有批處理軸,即您應該考慮上面的代碼嘗試對具有特定內核映像的一批映像運行卷積。如果這就是你想要的,你可以用小圖像將toImage初始化爲常量。 – KeD