ceccocats / tkDNN

Deep neural network library and toolkit to do high performace inference on NVIDIA jetson platforms
GNU General Public License v2.0
718 stars 208 forks source link

Darknet export bugs #35

Open JoeCool90 opened 4 years ago

JoeCool90 commented 4 years ago

Hi, me again.

In run_export in darknet.c in your other rep (sorry, don't know how to post issues on that one) there are a couple of bugs that caused me problems.

Thanks for all your work btw.

ceccocats commented 4 years ago
  • The fopen's need to be in binary mode

Same error... Does it create problems in Windows? Because in GNU/Linux never had any issue with this.

  • char *f[256] should be char f[256] or maybe char f[MAX_PATH] or whatever crossplatform version would work

Actually I found this problem this morning and substitute with 2048 but yeah, MAX_PATH is better.

Thank you

JoeCool90 commented 4 years ago

Sorry, didn't spot your reply.

Yes the error occurred with Visual Studio on Windows.