forked from dsutanto/bytetrack-counter-cpp
Exit when model file not found
This commit is contained in:
1 parent
87277f759b
commit
bed242d26c
3 files changed
+7
-2
No files matched your search
Binary file not shown.
+2
-2
@@ -4,11 +4,11 @@
|
||||
|
||||
namespace version {
|
||||
|
||||
const std::string GIT_COMMIT = "178797fb";
|
||||
const std::string GIT_COMMIT = "87277f75";
|
||||
const std::string GIT_BRANCH = "main";
|
||||
const std::string GIT_TAG = "";
|
||||
const std::string BUILD_DATE = "2026-07-06";
|
||||
const std::string BUILD_TIME = "11:33:54";
|
||||
const std::string BUILD_TIME = "18:03:38";
|
||||
const int BUILD_YEAR = 2026;
|
||||
const bool BUILD_RKNN = 1;
|
||||
|
||||
|
||||
@@ -166,6 +166,11 @@ int main(int argc, char* argv[]) {
|
||||
RKNNYOLO model(g_config.model_path, g_config.core_mask,
|
||||
g_config.imgsz, g_config.conf, 0.45f,
|
||||
g_config.num_classes, 0, g_config.score_sigmoid);
|
||||
if (!model.is_loaded()) {
|
||||
std::cerr << "ERROR: Failed to load model: " << g_config.model_path
|
||||
<< std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
ByteTracker ayam_tracker(g_config.track_high_thresh_0, g_config.track_low_thresh_0,
|
||||
g_config.track_match_thresh_0, g_config.track_buffer_0,
|
||||
|
||||
Reference in new issue
Block a user