projects
/
platform
/
upstream
/
caffeonacl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ea3da4
)
fix the bug with db_type when the number of features to be extracted is larger than 1
author
Mohammad Norouzi
<mohammad.n@gmail.com>
Wed, 27 May 2015 14:33:19 +0000
(10:33 -0400)
committer
Mohammad Norouzi
<mohammad.n@gmail.com>
Wed, 27 May 2015 14:33:19 +0000
(10:33 -0400)
tools/extract_features.cpp
patch
|
blob
|
history
diff --git
a/tools/extract_features.cpp
b/tools/extract_features.cpp
index
1ffbfbe
..
365dd49
100644
(file)
--- a/
tools/extract_features.cpp
+++ b/
tools/extract_features.cpp
@@
-122,9
+122,10
@@
int feature_extraction_pipeline(int argc, char** argv) {
std::vector<shared_ptr<db::DB> > feature_dbs;
std::vector<shared_ptr<db::Transaction> > txns;
+ const char* db_type = argv[++arg_pos];
for (size_t i = 0; i < num_features; ++i) {
LOG(INFO)<< "Opening dataset " << dataset_names[i];
- shared_ptr<db::DB> db(db::GetDB(
argv[++arg_pos]
));
+ shared_ptr<db::DB> db(db::GetDB(
db_type
));
db->Open(dataset_names.at(i), db::NEW);
feature_dbs.push_back(db);
shared_ptr<db::Transaction> txn(db->NewTransaction());