Print to stderr for example LMDB code
authorLuke Yeager <luke.yeager@gmail.com>
Fri, 26 Feb 2016 04:02:25 +0000 (20:02 -0800)
committerLuke Yeager <luke.yeager@gmail.com>
Wed, 20 Apr 2016 22:49:57 +0000 (15:49 -0700)
examples/cifar10/convert_cifar_data.cpp
examples/mnist/convert_mnist_data.cpp

index e1b89f4..7385a74 100644 (file)
@@ -91,6 +91,8 @@ void convert_dataset(const string& input_folder, const string& output_folder,
 }
 
 int main(int argc, char** argv) {
+  FLAGS_alsologtostderr = 1;
+
   if (argc != 4) {
     printf("This script converts the CIFAR dataset to the leveldb format used\n"
            "by caffe to perform classification.\n"
index 16d2809..32bee52 100644 (file)
@@ -178,6 +178,8 @@ int main(int argc, char** argv) {
   namespace gflags = google;
 #endif
 
+  FLAGS_alsologtostderr = 1;
+
   gflags::SetUsageMessage("This script converts the MNIST dataset to\n"
         "the lmdb/leveldb format used by Caffe to load data.\n"
         "Usage:\n"