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:
5bcdebd
)
Don't create a new batch after all the feature vectors have been saved
author
Kai Li
<kaili_kloud@163.com>
Mon, 17 Mar 2014 08:14:01 +0000
(16:14 +0800)
committer
Kai Li
<kaili_kloud@163.com>
Wed, 19 Mar 2014 15:04:42 +0000
(23:04 +0800)
tools/extract_features.cpp
patch
|
blob
|
history
diff --git
a/tools/extract_features.cpp
b/tools/extract_features.cpp
index
0766eea
..
e547db5
100644
(file)
--- a/
tools/extract_features.cpp
+++ b/
tools/extract_features.cpp
@@
-163,8
+163,6
@@
int feature_extraction_pipeline(int argc, char** argv) {
db->Write(leveldb::WriteOptions(), batch);
LOG(ERROR)<< "Extracted features of " << image_index <<
" query images.";
- delete batch;
- batch = new leveldb::WriteBatch();
}
delete batch;