From b5d029060c06dac39494fc24c8389cc6aa1b4d82 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 17 Jul 2026 17:29:24 -0700 Subject: [PATCH] updated log --- corelib/src/Memory.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/corelib/src/Memory.cpp b/corelib/src/Memory.cpp index 0b58bc62..5b7dc5db 100644 --- a/corelib/src/Memory.cpp +++ b/corelib/src/Memory.cpp @@ -450,8 +450,11 @@ void Memory::loadDataFromDb(bool postInitClosingEvents) // load the last dictionary _dbDriver->load(*_vwd, _vwd->isIncremental(), _dummyDictionary); } - UDEBUG("%d words loaded!", _vwd->getUnusedWordsSize()); - UDEBUG("Dictionary memory usage: %ld Bytes", _vwd->getMemoryUsed()); + UDEBUG("%d words loaded! (type=%s, dim=%d)", + _vwd->getUnusedWordsSize(), + _vwd->getVisualWords().empty()?"NA":_vwd->getVisualWords().begin()->second->getDescriptor().empty()?"dummy":_vwd->getVisualWords().begin()->second->getDescriptor().type() == CV_32FC1?"float":"binary", + _vwd->getVisualWords().empty()?0:_vwd->getVisualWords().begin()->second->getDescriptor().cols); + UDEBUG("Dictionary memory usage: %ld Bytes (%ld MB)", _vwd->getMemoryUsed(), _vwd->getMemoryUsed()/(1024*1024)); if(!_dummyDictionary) { _vwd->update(); }