From 583194a00811a312e0bdfa151a8ad6a222c2dd4d Mon Sep 17 00:00:00 2001 From: Darren Garvey Date: Tue, 1 Sep 2015 20:09:25 +0100 Subject: [PATCH] cifar10: Fix examples by setting snapshot_format. Commit 4227828a set the default binary format from HDF5 to BINARYPROTO to fix #2885. This broke the cifar10 examples which relied on this default. This commit specifies the snapshot_format explicitly since the rest of the example relies on this being HDF5. --- examples/cifar10/cifar10_full_solver.prototxt | 1 + examples/cifar10/cifar10_full_solver_lr1.prototxt | 1 + examples/cifar10/cifar10_full_solver_lr2.prototxt | 1 + examples/cifar10/cifar10_quick_solver.prototxt | 1 + examples/cifar10/cifar10_quick_solver_lr1.prototxt | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/cifar10/cifar10_full_solver.prototxt b/examples/cifar10/cifar10_full_solver.prototxt index f30b398..882daa2 100644 --- a/examples/cifar10/cifar10_full_solver.prototxt +++ b/examples/cifar10/cifar10_full_solver.prototxt @@ -21,6 +21,7 @@ display: 200 max_iter: 60000 # snapshot intermediate results snapshot: 10000 +snapshot_format: HDF5 snapshot_prefix: "examples/cifar10/cifar10_full" # solver mode: CPU or GPU solver_mode: GPU diff --git a/examples/cifar10/cifar10_full_solver_lr1.prototxt b/examples/cifar10/cifar10_full_solver_lr1.prototxt index 59bc572..55f4be4 100644 --- a/examples/cifar10/cifar10_full_solver_lr1.prototxt +++ b/examples/cifar10/cifar10_full_solver_lr1.prototxt @@ -21,6 +21,7 @@ display: 200 max_iter: 65000 # snapshot intermediate results snapshot: 5000 +snapshot_format: HDF5 snapshot_prefix: "examples/cifar10/cifar10_full" # solver mode: CPU or GPU solver_mode: GPU diff --git a/examples/cifar10/cifar10_full_solver_lr2.prototxt b/examples/cifar10/cifar10_full_solver_lr2.prototxt index d4ed5d8..7c3d2da 100644 --- a/examples/cifar10/cifar10_full_solver_lr2.prototxt +++ b/examples/cifar10/cifar10_full_solver_lr2.prototxt @@ -21,6 +21,7 @@ display: 200 max_iter: 70000 # snapshot intermediate results snapshot: 5000 +snapshot_format: HDF5 snapshot_prefix: "examples/cifar10/cifar10_full" # solver mode: CPU or GPU solver_mode: GPU diff --git a/examples/cifar10/cifar10_quick_solver.prototxt b/examples/cifar10/cifar10_quick_solver.prototxt index 14b4401..5de276f 100644 --- a/examples/cifar10/cifar10_quick_solver.prototxt +++ b/examples/cifar10/cifar10_quick_solver.prototxt @@ -20,6 +20,7 @@ display: 100 max_iter: 4000 # snapshot intermediate results snapshot: 4000 +snapshot_format: HDF5 snapshot_prefix: "examples/cifar10/cifar10_quick" # solver mode: CPU or GPU solver_mode: GPU diff --git a/examples/cifar10/cifar10_quick_solver_lr1.prototxt b/examples/cifar10/cifar10_quick_solver_lr1.prototxt index d3af70c..f8f1efd 100644 --- a/examples/cifar10/cifar10_quick_solver_lr1.prototxt +++ b/examples/cifar10/cifar10_quick_solver_lr1.prototxt @@ -20,6 +20,7 @@ display: 100 max_iter: 5000 # snapshot intermediate results snapshot: 5000 +snapshot_format: HDF5 snapshot_prefix: "examples/cifar10/cifar10_quick" # solver mode: CPU or GPU solver_mode: GPU -- 2.7.4