DBow3 icon indicating copy to clipboard operation
DBow3 copied to clipboard

Problem with generating dictionary on own features

Open JingruiYu opened this issue 5 years ago • 1 comments

Hello, I use my own CNN generated 512 dimension uchar descriptors of 7000 images and use DBoW3::Vocabulary vocab; vocab.create( descriptors ); vocab.save( "vocabulary.gz" ); to generate dictionary. Then I use another 100 images with descriptors generated from the same CNN to get vocabulary based on this dictionary. However, the vocabulary is null. While, I use the same descriptors of the 100 images to get vocabulary based on another dictionary, which is generated with orb features, the vocabulary is not null.

So, why? Is there something wrong with the generated dictionary based on the CNN feature?

JingruiYu avatar Aug 15 '19 12:08 JingruiYu

Hello, I use my own CNN generated 512 dimension uchar descriptors of 7000 images and use DBoW3::Vocabulary vocab; vocab.create( descriptors ); vocab.save( "vocabulary.gz" ); to generate dictionary. Then I use another 100 images with descriptors generated from the same CNN to get vocabulary based on this dictionary. However, the vocabulary is null. While, I use the same descriptors of the 100 images to get vocabulary based on another dictionary, which is generated with orb features, the vocabulary is not null.

So, why? Is there something wrong with the generated dictionary based on the CNN feature?

I get the same problems when I use DBoW::create( ). And besides, it seems to cost more time when running function DBoW3::Vocabulary vocab("./vocabulary.yml.gz") about ten times comparing to the spent time in create function.

hmf21 avatar Aug 26 '20 18:08 hmf21