symisc / sod

An Embedded Computer Vision & Machine Learning Library (CPU Optimized & IoT Capable)
https://sod.pixlab.io
Other
1.75k stars 213 forks source link

The function of the training model has a BUG #4

Closed qaz734913414 closed 6 years ago

qaz734913414 commented 6 years ago

I set up the positive sample and negative sample path and add the training file in two directories, the first positive sample load is no problem, but the second negative sample load appears "IO error while entering directory" error, I try to adjust the code in sod.c, "detector_layer_exec" in "DetectorCollec". TSamples (pDet, pPath->sPosPath.zString, SOD_TR_SAMPLE_POS, pPath->recurse, 0) "and" DetectorCollectSamples (pDet, pPath->sNegPath.zString, SOD_TR_SAMPLE_NEG, pPath->recurse, 0) "position,The final result is that the negative sample is loaded successfully, but the positive sample loading fails, prompting the error of "IO error while entering directory", and this is not a heap overflow problem caused by "FindFirstFileW".

symisc commented 6 years ago

Does the positive and negative samples belong to the same directory? If so, set the recurse parameter to false and the root parameter to the root of the path. Could you provide a copy of the training file? We don't recommend that you mess with the code unless you know what you doing.

Sent from MailDroid

-----Original Message----- From: "独自狂战" notifications@github.com To: symisc/sod sod@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Sent: Mon, 11 Jun 2018 4:44 Subject: [symisc/sod] The function of the training model has a BUG (#4)

I set up the positive sample and negative sample path and add the training file in two directories, the first positive sample load is no problem, but the second negative sample load appears "IO error while entering directory" error, I try to adjust the code in sod.c, "detector_layer_exec" in "DetectorCollec". TSamples (pDet, pPath->sPosPath.zString, SOD_TR_SAMPLE_POS, pPath->recurse, 0) "and" DetectorCollectSamples (pDet, pPath->sNegPath.zString, SOD_TR_SAMPLE_NEG, pPath->recurse, 0) "position,The final result is that the negative sample is loaded successfully, but the positive sample loading fails, prompting the error of "IO error while entering directory", and this is not a heap overflow problem caused by "FindFirstFileW".

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/symisc/sod/issues/4

qaz734913414 commented 6 years ago

It has been resolved that the relative path of the configuration is wrong and the absolute path needs to be configured. Thank you for your open source project.

qaz734913414 commented 6 years ago

Configure the absolute path, which has been solved.