Current implementation relies on a pytorch implementation of yolov4 to import darknet weights and export to .wts weights.
This format has the benefit of an additional dictionary to look up values, which makes it more convenient to parse.
It should be possible to read the weights directly from the darknet weight file, considering that darknet is written in C and all necessary functions are implemented there and can be looked up. Darknet has a simple way of serializing weights, it simply writes all weights in order of the layer definitions into the file.
Current implementation relies on a pytorch implementation of yolov4 to import darknet weights and export to .wts weights. This format has the benefit of an additional dictionary to look up values, which makes it more convenient to parse.
It should be possible to read the weights directly from the darknet weight file, considering that darknet is written in C and all necessary functions are implemented there and can be looked up. Darknet has a simple way of serializing weights, it simply writes all weights in order of the layer definitions into the file.