Bug: incorrect output dimensions in yolo layer #60
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In yolov3_tiny network dimensions of the first yolo layer is
13 x 13 x 255and dimensions of the second one is26 x 26 x 255. However, if we use a network configuration in which unlike yolov3_tiny the dimensions of the first yolo layer is bigger than the second one (like this), this line:will fail with the error:
The problem is that
output_dimof the layer is different from the dimensions of thedstDataand with debugging it can be found that for the first yolo layer theoutput_dimof it equals to the second one and vice versa. (Or we can say that the dimensions ofdstDatabelongs the other layer).I'm not sure if other parameters of the layer has the same problem.
After more debugging I found that, order of yolo layers in
pluginFactoryofNetworkRTafter desrialization (here), is different from what we have inNetworkRT::buffersRTwhich is based onengineRT->getBindingDimensions()(here).Changing this line to the following will solve the problem. But I am not sure if this works for all the cases.
Hi,
The order of buffersRt should always be:
Input
Output 0
Output 1
Etc.
If this really happen I need to check
What happens is that order of yolo layers in
NetworkRT::pluginFactoryis different frombufferRT. Example for 2 yolo layers :in
bufferRTbut inpluginFactory: