Closed Flova closed 3 days ago
I expect a deconvolution to increase the resolution of the feature map, but for Darknet cfg files Netron handles the deconvolution the same way it handles the convolution:
https://github.com/lutzroeder/netron/blob/f59afb65204fceab34023ee33162db874ecb5416/source/darknet.js#L260
And the output resolution of the convolutional layer in Netron is computed like this: https://github.com/lutzroeder/netron/blob/f59afb65204fceab34023ee33162db874ecb5416/source/darknet.js#L127
while Darknet computes the deconvolution like this:
https://github.com/pjreddie/darknet/blob/f6afaabcdf85f77e7aff2ec55c020c0e297c77f9/src/deconvolutional_layer.c#L67C5-L67C55
l.out_h = (l.h - 1) * l.stride + l.size - 2*l.pad;
Current behavior:
Expected Behavior:
Steps to Reproduce:
Please attach or link model files to reproduce the issue.
Example cfg with deconvolution:
Thanks!
I expect a deconvolution to increase the resolution of the feature map, but for Darknet cfg files Netron handles the deconvolution the same way it handles the convolution:
https://github.com/lutzroeder/netron/blob/f59afb65204fceab34023ee33162db874ecb5416/source/darknet.js#L260
And the output resolution of the convolutional layer in Netron is computed like this: https://github.com/lutzroeder/netron/blob/f59afb65204fceab34023ee33162db874ecb5416/source/darknet.js#L127
while Darknet computes the deconvolution like this:
https://github.com/pjreddie/darknet/blob/f6afaabcdf85f77e7aff2ec55c020c0e297c77f9/src/deconvolutional_layer.c#L67C5-L67C55
Current behavior:
Expected Behavior:
Steps to Reproduce:
Please attach or link model files to reproduce the issue.
Example cfg with deconvolution: