How to use roialignLayer in the network?
3 次查看(过去 30 天)
显示 更早的评论
Hello, I encountered a similar issue as in the link while using roialignLayer.The error displayed on my network is:
Input size mismatch.Size of input to this layer is different from the expected input size.Inputs to this layer:
from layer"activation_40_relu"(size 14(S)× 14(S)× 1024(C)× 1(B))
from layer "regionProposal" (size 1(S)×5(C)×1(B))
Can someone tell me how to modify the network or provide an example of successfully using roialignLayer?
Thank you very much, the network has provided.
2 个评论
Ashutosh Thakur
2024-6-17
编辑:Ashutosh Thakur
2024-6-18
Hi Tian,
I have tried to executing your code but I was not facing any error at my end. Can you provide me with the complete steps to get this error? Also the error message indicates that their is mismatch between the size of the "activation_40_relu" layer and "regionProposal" layer. You can try checking by using debugger to check whether size are same or not. Reshape operations can be used to change the size of the array. https://www.mathworks.com/help/matlab/ref/reshape.html
The example mentioned in the following documentation link can be referred on how to use the roialignLayer: https://www.mathworks.com/help/vision/ref/nnet.cnn.layer.roialignlayer.html
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!