Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + set -e
- + export PYTHONUNBUFFERED=True
- + PYTHONUNBUFFERED=True
- + GPU_ID=0
- + NET=ZF
- + NET_lc=zf
- + array=($@)
- + len=9
- + EXTRA_ARGS='--set EXP_DIR foobar RNG_SEED 42 TRAIN.SCALES [400,500,600,700]'
- + EXTRA_ARGS_SLUG='--set_EXP_DIR_foobar_RNG_SEED_42_TRAIN.SCALES_[400,500,600,700]'
- ++ date +%Y-%m-%d_%H-%M-%S
- + LOG='experiments/logs/faster_rcnn_alt_opt_ZF_--set_EXP_DIR_foobar_RNG_SEED_42_TRAIN.SCALES_[400,500,600,700].txt.2016-07-29_00-04-50'
- + exec
- ++ tee -a 'experiments/logs/faster_rcnn_alt_opt_ZF_--set_EXP_DIR_foobar_RNG_SEED_42_TRAIN.SCALES_[400,500,600,700].txt.2016-07-29_00-04-50'
- + echo Logging output to 'experiments/logs/faster_rcnn_alt_opt_ZF_--set_EXP_DIR_foobar_RNG_SEED_42_TRAIN.SCALES_[400,500,600,700].txt.2016-07-29_00-04-50'
- Logging output to experiments/logs/faster_rcnn_alt_opt_ZF_--set_EXP_DIR_foobar_RNG_SEED_42_TRAIN.SCALES_[400,500,600,700].txt.2016-07-29_00-04-50
- + ./tools/train_faster_rcnn_alt_opt.py --gpu 0 --net_name ZF --weights data/imagenet_models/ZF.v2.caffemodel --imdb voc_2007_trainval --cfg experiments/cfgs/faster_rcnn_alt_opt.yml --set EXP_DIR foobar RNG_SEED 42 TRAIN.SCALES '[400,500,600,700]'
- Called with args:
- Namespace(cfg_file='experiments/cfgs/faster_rcnn_alt_opt.yml', gpu_id=0, imdb_name='voc_2007_trainval', net_name='ZF', pretrained_model='data/imagenet_models/ZF.v2.caffemodel', set_cfgs=['EXP_DIR', 'foobar', 'RNG_SEED', '42', 'TRAIN.SCALES', '[400,500,600,700]'])
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Stage 1 RPN, init from ImageNet model
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Init model: data/imagenet_models/ZF.v2.caffemodel
- Using config:
- {'DEDUP_BOXES': 0.0625,
- 'EPS': 1e-14,
- 'EXP_DIR': 'foobar',
- 'GPU_ID': 0,
- 'PIXEL_MEANS': array([[[ 102.9801, 115.9465, 122.7717]]]),
- 'RNG_SEED': 42,
- 'ROOT_DIR': '/home/ckim/Neuro/py-faster-rcnn',
- 'TEST': {'BBOX_REG': True,
- 'HAS_RPN': True,
- 'MAX_SIZE': 1000,
- 'NMS': 0.3,
- 'PROPOSAL_METHOD': 'selective_search',
- 'RPN_MIN_SIZE': 16,
- 'RPN_NMS_THRESH': 0.7,
- 'RPN_POST_NMS_TOP_N': 300,
- 'RPN_PRE_NMS_TOP_N': 6000,
- 'SCALES': [600],
- 'SVM': False},
- 'TRAIN': {'ASPECT_GROUPING': True,
- 'BATCH_SIZE': 128,
- 'BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0],
- 'BBOX_NORMALIZE_MEANS': [0.0, 0.0, 0.0, 0.0],
- 'BBOX_NORMALIZE_STDS': [0.1, 0.1, 0.2, 0.2],
- 'BBOX_NORMALIZE_TARGETS': True,
- 'BBOX_NORMALIZE_TARGETS_PRECOMPUTED': False,
- 'BBOX_REG': False,
- 'BBOX_THRESH': 0.5,
- 'BG_THRESH_HI': 0.5,
- 'BG_THRESH_LO': 0.1,
- 'FG_FRACTION': 0.25,
- 'FG_THRESH': 0.5,
- 'HAS_RPN': True,
- 'IMS_PER_BATCH': 1,
- 'MAX_SIZE': 1000,
- 'PROPOSAL_METHOD': 'gt',
- 'RPN_BATCHSIZE': 256,
- 'RPN_BBOX_INSIDE_WEIGHTS': [1.0, 1.0, 1.0, 1.0],
- 'RPN_CLOBBER_POSITIVES': False,
- 'RPN_FG_FRACTION': 0.5,
- 'RPN_MIN_SIZE': 16,
- 'RPN_NEGATIVE_OVERLAP': 0.3,
- 'RPN_NMS_THRESH': 0.7,
- 'RPN_POSITIVE_OVERLAP': 0.7,
- 'RPN_POSITIVE_WEIGHT': -1.0,
- 'RPN_POST_NMS_TOP_N': 2000,
- 'RPN_PRE_NMS_TOP_N': 12000,
- 'SCALES': [400, 500, 600, 700],
- 'SNAPSHOT_INFIX': 'stage1',
- 'SNAPSHOT_ITERS': 10000,
- 'USE_FLIPPED': True,
- 'USE_PREFETCH': False},
- 'USE_GPU_NMS': True}
- Loaded dataset `voc_2007_trainval` for training
- Set proposal method: gt
- Appending horizontally-flipped training examples...
- voc_2007_trainval gt roidb loaded from /home/ckim/Neuro/py-faster-rcnn/data/cache/voc_2007_trainval_gt_roidb.pkl
- done
- Preparing training data...
- done
- roidb len: 10022
- Output will be saved to `/home/ckim/Neuro/py-faster-rcnn/output/default/voc_2007_trainval`
- starting Parse..
- WARNING: Logging before InitGoogleLogging() is written to STDERR
- I0729 00:04:54.295856 29609 solver.cpp:54] Initializing solver from parameters:
- train_net: "models/ZF/faster_rcnn_alt_opt/stage1_rpn_train.pt"
- base_lr: 0.001
- display: 20
- lr_policy: "step"
- gamma: 0.1
- momentum: 0.9
- weight_decay: 0.0005
- stepsize: 60000
- snapshot: 0
- snapshot_prefix: "zf_rpn"
- average_loss: 100
- I0729 00:04:54.295915 29609 solver.cpp:86] Creating training net from train_net file: models/ZF/faster_rcnn_alt_opt/stage1_rpn_train.pt
- [libprotobuf INFO google/protobuf/text_format.cc:1155] This one?
- starting Parse..
- I0729 00:04:54.296700 29609 net.cpp:59] Initializing net from parameters X :
- name: "ZF"
- state {
- phase: TRAIN
- }
- layer {
- name: "input-data"
- type: "Python"
- top: "data"
- top: "im_info"
- top: "gt_boxes"
- python_param {
- module: "roi_data_layer.layer"
- layer: "RoIDataLayer"
- param_str: "\'num_classes\': 21"
- }
- }
- layer {
- name: "conv1"
- type: "Convolution"
- bottom: "data"
- top: "conv1"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 96
- pad: 3
- kernel_size: 7
- stride: 2
- }
- }
- layer {
- name: "relu1"
- type: "ReLU"
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "norm1"
- type: "LRN"
- bottom: "conv1"
- top: "norm1"
- lrn_param {
- local_size: 3
- alpha: 5e-05
- beta: 0.75
- norm_region: WITHIN_CHANNEL
- }
- }
- layer {
- name: "pool1"
- type: "Pooling"
- bottom: "norm1"
- top: "pool1"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- pad: 1
- }
- }
- layer {
- name: "conv2"
- type: "Convolution"
- bottom: "pool1"
- top: "conv2"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 2
- kernel_size: 5
- stride: 2
- }
- }
- layer {
- name: "relu2"
- type: "ReLU"
- bottom: "conv2"
- top: "conv2"
- }
- layer {
- name: "norm2"
- type: "LRN"
- bottom: "conv2"
- top: "norm2"
- lrn_param {
- local_size: 3
- alpha: 5e-05
- beta: 0.75
- norm_region: WITHIN_CHANNEL
- }
- }
- layer {
- name: "pool2"
- type: "Pooling"
- bottom: "norm2"
- top: "pool2"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- pad: 1
- }
- }
- layer {
- name: "conv3"
- type: "Convolution"
- bottom: "pool2"
- top: "conv3"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 384
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu3"
- type: "ReLU"
- bottom: "conv3"
- top: "conv3"
- }
- layer {
- name: "conv4"
- type: "Convolution"
- bottom: "conv3"
- top: "conv4"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 384
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu4"
- type: "ReLU"
- bottom: "conv4"
- top: "conv4"
- }
- layer {
- name: "conv5"
- type: "Convolution"
- bottom: "conv4"
- top: "conv5"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu5"
- type: "ReLU"
- bottom: "conv5"
- top: "conv5"
- }
- layer {
- name: "rpn_conv1"
- type: "Convolution"
- bottom: "conv5"
- top: "rpn_conv1"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_relu1"
- type: "ReLU"
- bottom: "rpn_conv1"
- top: "rpn_conv1"
- }
- layer {
- name: "rpn_cls_score"
- type: "Convolution"
- bottom: "rpn_conv1"
- top: "rpn_cls_score"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 18
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_bbox_pred"
- type: "Convolution"
- bottom: "rpn_conv1"
- top: "rpn_bbox_pred"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 36
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_cls_score_reshape"
- type: "Reshape"
- bottom: "rpn_cls_score"
- top: "rpn_cls_score_reshape"
- reshape_param {
- shape {
- dim: 0
- dim: 2
- dim: -1
- dim: 0
- }
- }
- }
- layer {
- name: "rpn-data"
- type: "Python"
- bottom: "rpn_cls_score"
- bottom: "gt_boxes"
- bottom: "im_info"
- bottom: "data"
- top: "rpn_labels"
- top: "rpn_bbox_targets"
- top: "rpn_bbox_inside_weights"
- top: "rpn_bbox_outside_weights"
- python_param {
- module: "rpn.anchor_target_layer"
- layer: "AnchorTargetLayer"
- param_str: "\'feat_stride\': 16"
- }
- }
- layer {
- name: "rpn_loss_cls"
- type: "SoftmaxWithLoss"
- bottom: "rpn_cls_score_reshape"
- bottom: "rpn_labels"
- top: "rpn_cls_loss"
- loss_weight: 1
- propagate_down: true
- propagate_down: false
- loss_param {
- ignore_label: -1
- normalize: true
- }
- }
- layer {
- name: "rpn_loss_bbox"
- type: "SmoothL1Loss"
- bottom: "rpn_bbox_pred"
- bottom: "rpn_bbox_targets"
- bottom: "rpn_bbox_inside_weights"
- bottom: "rpn_bbox_outside_weights"
- top: "rpn_loss_bbox"
- loss_weight: 1
- smooth_l1_loss_param {
- sigma: 3
- }
- }
- layer {
- name: "dummy_roi_pool_conv5"
- type: "DummyData"
- top: "dummy_roi_pool_conv5"
- dummy_data_param {
- data_filler {
- type: "gaussian"
- std: 0.01
- }
- shape {
- dim: 1
- dim: 9216
- }
- }
- }
- layer {
- name: "fc6"
- type: "InnerProduct"
- bottom: "dummy_roi_pool_conv5"
- top: "fc6"
- param {
- lr_mult: 0
- decay_mult: 0
- }
- param {
- lr_mult: 0
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- }
- }
- layer {
- name: "relu6"
- type: "ReLU"
- bottom: "fc6"
- top: "fc6"
- }
- layer {
- name: "fc7"
- type: "InnerProduct"
- bottom: "fc6"
- top: "fc7"
- param {
- lr_mult: 0
- decay_mult: 0
- }
- param {
- lr_mult: 0
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- }
- }
- layer {
- name: "silence_fc7"
- type: "Silence"
- bottom: "fc7"
- }
- last_loss = 1
- last_loss = 1
- state {
- phase: TRAIN
- }
- layer {
- name: "input-data"
- type: "Python"
- top: "data"
- top: "im_info"
- top: "gt_boxes"
- python_param {
- module: "roi_data_layer.layer"
- layer: "RoIDataLayer"
- param_str: "\'num_classes\': 21"
- }
- }
- layer {
- name: "data_input-data_0_split"
- type: "Split"
- bottom: "data"
- top: "data_input-data_0_split_0"
- top: "data_input-data_0_split_1"
- }
- layer {
- name: "conv1"
- type: "Convolution"
- bottom: "data_input-data_0_split_0"
- top: "conv1"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 96
- pad: 3
- kernel_size: 7
- stride: 2
- }
- }
- layer {
- name: "relu1"
- type: "ReLU"
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "norm1"
- type: "LRN"
- bottom: "conv1"
- top: "norm1"
- lrn_param {
- local_size: 3
- alpha: 5e-05
- beta: 0.75
- norm_region: WITHIN_CHANNEL
- }
- }
- layer {
- name: "pool1"
- type: "Pooling"
- bottom: "norm1"
- top: "pool1"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- pad: 1
- }
- }
- layer {
- name: "conv2"
- type: "Convolution"
- bottom: "pool1"
- top: "conv2"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 2
- kernel_size: 5
- stride: 2
- }
- }
- layer {
- name: "relu2"
- type: "ReLU"
- bottom: "conv2"
- top: "conv2"
- }
- layer {
- name: "norm2"
- type: "LRN"
- bottom: "conv2"
- top: "norm2"
- lrn_param {
- local_size: 3
- alpha: 5e-05
- beta: 0.75
- norm_region: WITHIN_CHANNEL
- }
- }
- layer {
- name: "pool2"
- type: "Pooling"
- bottom: "norm2"
- top: "pool2"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- pad: 1
- }
- }
- layer {
- name: "conv3"
- type: "Convolution"
- bottom: "pool2"
- top: "conv3"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 384
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu3"
- type: "ReLU"
- bottom: "conv3"
- top: "conv3"
- }
- layer {
- name: "conv4"
- type: "Convolution"
- bottom: "conv3"
- top: "conv4"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 384
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu4"
- type: "ReLU"
- bottom: "conv4"
- top: "conv4"
- }
- layer {
- name: "conv5"
- type: "Convolution"
- bottom: "conv4"
- top: "conv5"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- stride: 1
- }
- }
- layer {
- name: "relu5"
- type: "ReLU"
- bottom: "conv5"
- top: "conv5"
- }
- layer {
- name: "rpn_conv1"
- type: "Convolution"
- bottom: "conv5"
- top: "rpn_conv1"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_relu1"
- type: "ReLU"
- bottom: "rpn_conv1"
- top: "rpn_conv1"
- }
- layer {
- name: "rpn_conv1_rpn_relu1_0_split"
- type: "Split"
- bottom: "rpn_conv1"
- top: "rpn_conv1_rpn_relu1_0_split_0"
- top: "rpn_conv1_rpn_relu1_0_split_1"
- }
- layer {
- name: "rpn_cls_score"
- type: "Convolution"
- bottom: "rpn_conv1_rpn_relu1_0_split_0"
- top: "rpn_cls_score"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 18
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_cls_score_rpn_cls_score_0_split"
- type: "Split"
- bottom: "rpn_cls_score"
- top: "rpn_cls_score_rpn_cls_score_0_split_0"
- top: "rpn_cls_score_rpn_cls_score_0_split_1"
- }
- layer {
- name: "rpn_bbox_pred"
- type: "Convolution"
- bottom: "rpn_conv1_rpn_relu1_0_split_1"
- top: "rpn_bbox_pred"
- param {
- lr_mult: 1
- }
- param {
- lr_mult: 2
- }
- convolution_param {
- num_output: 36
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "rpn_cls_score_reshape"
- type: "Reshape"
- bottom: "rpn_cls_score_rpn_cls_score_0_split_0"
- top: "rpn_cls_score_reshape"
- reshape_param {
- shape {
- dim: 0
- dim: 2
- dim: -1
- dim: 0
- }
- }
- }
- layer {
- name: "rpn-data"
- type: "Python"
- bottom: "rpn_cls_score_rpn_cls_score_0_split_1"
- bottom: "gt_boxes"
- bottom: "im_info"
- bottom: "data_input-data_0_split_1"
- top: "rpn_labels"
- top: "rpn_bbox_targets"
- top: "rpn_bbox_inside_weights"
- top: "rpn_bbox_outside_weights"
- python_param {
- module: "rpn.anchor_target_layer"
- layer: "AnchorTargetLayer"
- param_str: "\'feat_stride\': 16"
- }
- }
- layer {
- name: "rpn_loss_cls"
- type: "SoftmaxWithLoss"
- bottom: "rpn_cls_score_reshape"
- bottom: "rpn_labels"
- top: "rpn_cls_loss"
- loss_weight: 1
- propagate_down: true
- propagate_down: false
- loss_param {
- ignore_label: -1
- normalize: true
- }
- }
- layer {
- name: "rpn_loss_bbox"
- type: "SmoothL1Loss"
- bottom: "rpn_bbox_pred"
- bottom: "rpn_bbox_targets"
- bottom: "rpn_bbox_inside_weights"
- bottom: "rpn_bbox_outside_weights"
- top: "rpn_loss_bbox"
- loss_weight: 1
- smooth_l1_loss_param {
- sigma: 3
- }
- }
- layer {
- name: "dummy_roi_pool_conv5"
- type: "DummyData"
- top: "dummy_roi_pool_conv5"
- dummy_data_param {
- data_filler {
- type: "gaussian"
- std: 0.01
- }
- shape {
- dim: 1
- dim: 9216
- }
- }
- }
- layer {
- name: "fc6"
- type: "InnerProduct"
- bottom: "dummy_roi_pool_conv5"
- top: "fc6"
- param {
- lr_mult: 0
- decay_mult: 0
- }
- param {
- lr_mult: 0
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- }
- }
- layer {
- name: "relu6"
- type: "ReLU"
- bottom: "fc6"
- top: "fc6"
- }
- layer {
- name: "fc7"
- type: "InnerProduct"
- bottom: "fc6"
- top: "fc7"
- param {
- lr_mult: 0
- decay_mult: 0
- }
- param {
- lr_mult: 0
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- }
- }
- layer {
- name: "silence_fc7"
- type: "Silence"
- bottom: "fc7"
- }
- I0729 00:04:54.297251 29609 layer_factory.hpp:76] Creating layer input-data
- I0729 00:04:54.297762 29609 net.cpp:140] Creating Layer input-data
- I0729 00:04:54.297783 29609 net.cpp:476] input-data -> data
- I0729 00:04:54.297806 29609 net.cpp:476] input-data -> im_info
- I0729 00:04:54.297821 29609 net.cpp:476] input-data -> gt_boxes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement