Skip to content

Commit

Permalink
Merge pull request BVLC#8 from pjin-nvidia/caffe-0.16-varsz-example
Browse files Browse the repository at this point in the history
ResNet-50 example using variable sized image data augmentation.
  • Loading branch information
drnikolaev authored Aug 30, 2017
2 parents bb87ddb + 52b04f2 commit 2d3bb4b
Show file tree
Hide file tree
Showing 3 changed files with 1,970 additions and 0 deletions.
41 changes: 41 additions & 0 deletions models/resnet50/solver_augment.prototxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
net: "models/resnet50/train_val_augment.prototxt"

test_iter: 1562 # 50000/32
test_interval: 5000
test_initialization: false

display: 100

# DGX1 =================================
max_iter: 500000 # 100 epoch B=256
base_lr: 0.2 # B=256
# ======================================

local_lr_auto: true

rampup_lr: 0.001
rampup_interval: 10000

lr_policy: "poly"
power: 2.0
momentum: 0.9
weight_decay: 1e-4

snapshot: 2500000
snapshot_prefix: "models/resnet50/snapshots/resnet50_augment"
snapshot_after_train: false

solver_mode: GPU
random_seed: 1

# Train dataset size = 1,281,167
# Test dataset size = 50,000

# batch 32 --> epoch = 40,000
# batch 64 --> epoch = 20,000
# batch 96 --> epoch = 15,000
# batch 128 --> epoch = 10,000
# batch 256 --> epoch = 5,000
# batch 512 --> epoch = 2,500


4 changes: 4 additions & 0 deletions models/resnet50/train_resnet50_augment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

./build/tools/caffe train --solver=models/resnet50/solver_augment.prototxt -gpu=all \
2>&1 | tee models/resnet50/logs/resnet50_augment.log
Loading

0 comments on commit 2d3bb4b

Please sign in to comment.