Commit 51614510 authored by Ross Girshick's avatar Ross Girshick

organizing experiments

parent 44c04129
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/default_caffenet.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/train_net.py --gpu $1 \
--solver models/CaffeNet/solver.prototxt \
--weights data/imagenet_models/CaffeNet.v2.caffemodel \
--imdb voc_2007_trainval
time ./tools/test_net.py --gpu $1 \
--def models/CaffeNet/test.prototxt \
--net output/default/voc_2007_trainval/caffenet_fast_rcnn_iter_40000.caffemodel \
--imdb voc_2007_test
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/default_vgg_cnn_m_1024.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/train_net.py --gpu $1 \
--solver models/VGG_CNN_M_1024/solver.prototxt \
--weights data/imagenet_models/VGG_CNN_M_1024.v2.caffemodel \
--imdb voc_2007_trainval
time ./tools/test_net.py --gpu $1 \
--def models/VGG_CNN_M_1024/test.prototxt \
--net output/default/voc_2007_trainval/vgg_cnn_m_1024_fast_rcnn_iter_40000.caffemodel \
--imdb voc_2007_test
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/multiscale_caffenet.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/train_net.py --gpu $1 \
--solver models/CaffeNet/solver.prototxt \
--weights data/imagenet_models/CaffeNet.v2.caffemodel \
--imdb voc_2007_trainval \
--cfg experiments/cfgs/multiscale.yml
time ./tools/test_net.py --gpu $1 \
--def models/CaffeNet/test.prototxt \
--net output/multiscale/voc_2007_trainval/caffenet_fast_rcnn_multiscale_iter_40000.caffemodel \
--imdb voc_2007_test \
--cfg experiments/cfgs/multiscale.yml
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/multiscale_vgg_cnn_m_1024.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/train_net.py --gpu $1 \
--solver models/VGG_CNN_M_1024/solver.prototxt \
--weights data/imagenet_models/VGG_CNN_M_1024.v2.caffemodel \
--imdb voc_2007_trainval \
--cfg experiments/cfgs/multiscale.yml
time ./tools/test_net.py --gpu $1 \
--def models/VGG_CNN_M_1024/test.prototxt \
--net output/multiscale/voc_2007_trainval/vgg_cnn_m_1024_fast_rcnn_multiscale_iter_40000.caffemodel \
--imdb voc_2007_test \
--cfg experiments/cfgs/multiscale.yml
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/svd_caffenet.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/compress_net.py \
--def models/CaffeNet/test.prototxt \
--def-svd models/CaffeNet/compressed/test.prototxt \
--net output/default/voc_2007_trainval/caffenet_fast_rcnn_iter_40000.caffemodel
time ./tools/test_net.py --gpu $1 \
--def models/CaffeNet/compressed/test.prototxt \
--net output/default/voc_2007_trainval/caffenet_fast_rcnn_iter_40000_svd_fc6_1024_fc7_256.caffemodel \
--imdb voc_2007_test
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
#! /bin/bash
set -x
export PYTHONUNBUFFERED="True"
# -----------------------------------------------------------------------------
LOG="experiments/logs/svd_vgg_cnn_m_1024.txt.`date +'%Y-%m-%d_%H-%M-%S'`"
exec 3>&1 4>&2 &> >(tee -a "$LOG")
echo Logging output to "$LOG"
time ./tools/compress_net.py \
--def models/VGG_CNN_M_1024/test.prototxt \
--def-svd models/VGG_CNN_M_1024/compressed/test.prototxt \
--net output/default/voc_2007_trainval/vgg_cnn_m_1024_fast_rcnn_iter_40000.caffemodel
time ./tools/test_net.py --gpu $1 \
--def models/VGG_CNN_M_1024/compressed/test.prototxt \
--net output/default/voc_2007_trainval/vgg_cnn_m_1024_fast_rcnn_iter_40000_svd_fc6_1024_fc7_256.caffemodel \
--imdb voc_2007_test
# restore stdout/err
exec 1>&3 2>&4
# -----------------------------------------------------------------------------
......@@ -27,6 +27,7 @@ layer {
convolution_param {
num_output: 96
kernel_size: 11
pad: 5
stride: 4
}
}
......@@ -44,6 +45,7 @@ layer {
pooling_param {
pool: MAX
kernel_size: 3
pad: 1
stride: 2
}
}
......@@ -73,8 +75,8 @@ layer {
}
convolution_param {
num_output: 256
pad: 2
kernel_size: 5
pad: 2
group: 2
}
}
......@@ -92,6 +94,7 @@ layer {
pooling_param {
pool: MAX
kernel_size: 3
pad: 1
stride: 2
}
}
......@@ -121,8 +124,8 @@ layer {
}
convolution_param {
num_output: 384
pad: 1
kernel_size: 3
pad: 1
}
}
layer {
......@@ -146,8 +149,8 @@ layer {
}
convolution_param {
num_output: 384
pad: 1
kernel_size: 3
pad: 1
group: 2
}
}
......@@ -172,8 +175,8 @@ layer {
}
convolution_param {
num_output: 256
pad: 1
kernel_size: 3
pad: 1
group: 2
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment