diff options
author | Kai Li <kaili_kloud@163.com> | 2014-03-17 16:14:01 +0800 |
---|---|---|
committer | Kai Li <kaili_kloud@163.com> | 2014-03-19 23:04:42 +0800 |
commit | 6a60795aec596757ee32dd920713b9aeb9d9b225 (patch) | |
tree | f1d3af0fc22771dfb3f0dc22b966f772ce4f75bf /tools | |
parent | 5bcdebdafbaba6e35a01f45b54ec6ee78dbb1ffa (diff) | |
download | caffeonacl-6a60795aec596757ee32dd920713b9aeb9d9b225.tar.gz caffeonacl-6a60795aec596757ee32dd920713b9aeb9d9b225.tar.bz2 caffeonacl-6a60795aec596757ee32dd920713b9aeb9d9b225.zip |
Don't create a new batch after all the feature vectors have been saved
Diffstat (limited to 'tools')
-rw-r--r-- | tools/extract_features.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/extract_features.cpp b/tools/extract_features.cpp index 0766eea6..e547db59 100644 --- 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; |