Skip to content

Instantly share code, notes, and snippets.

@Nanne
Nanne / convert_vector.cpp
Created August 3, 2015 12:21
Tool to convert a list of vectors into a lmdb database for Caffe
// This program converts a set of vector<float>'s to a lmdb/leveldb by storing
// them as Datum proto buffers.
// Usage:
// convert_vector [FLAGS] LISTFILE DB_NAME
//
// where LISTFILE should be a list of files as well as the accompanying vector
// of floats, in the format as:
// subfolder1/file1.JPEG 0.2 0.3 0.1 0.25 0.15
// ....

Keybase proof

I hereby claim:

  • I am nanne on github.
  • I am nanne (https://keybase.io/nanne) on keybase.
  • I have a public key whose fingerprint is 8A93 1BDD B7E7 FC06 67F1 1E43 0829 0ABA BF15 AFD0

To claim this, I am signing this object: