Open alexkokh opened 3 years ago
git clone https://git.hipert.unimore.it/fgatti/darknet.git i think you should just use this repo for exporting only and make it without any changes , and it would for you pretty good
https://github.com/ceccocats/tkDNN/blob/master/docs/exporting_weights.md
Have you checked the links in the original post? Those two problems are in the repo you’re referring to. You can’t even build that code the way it is now and the export is producing corrupt files.
for producing larger files , yes it does . i made 2 folders layers , debug and it worked fine. using this command
./darknet export
for convultion_kernals i didn't get issue with it. what model u trying to export
You don't seem to be understanding the problem. It's irrelevant what model is being exported. Binary files shouldn't be written in text mode. It may not make a difference in Linux, however it breaks Windows compatibility.
I also encountered the first problem you mentioned, and then I can compile after modifying it. But my darknet still cannot generate debug files in Windows.
You don’t need the debug files for inference, as long as you have the correctly exported layer files you should be good. It’s easier to use the up to date darknet code instead of modifying individual files, except for the export code obviously.
Hi @alexkokh, thank you for pointing out this errors. In response of the listed issues:
As a quick workaround I suggest to compile darknet export repo in CPU only mode (as written in the readme ), since the unmerged change is inside a cudnn ifdef I haven't noticed that. Also the debug export is only supported in CPU mode. Since you don't need performance is pretty fine to run on CPU.
Best, Francesco
There's couple issues with exporting weights from darknet:
My solution was to use the current darknet master branch, add the export code to it and change the fopen mode to "wb". Perhaps you may want to fix your darknet fork as well.