train model note
2016-12-07 15:36
218 查看
1.how to have a folder of wwb ?you can download from Ross Girshick:https://github.com/rbgirshick/py-faster-rcnn. and next is cd wwb/lib/datasets,to new a file named contain_lorry.py.this is to recognize ROI region from the origin image ,so the classes are two:background and num,and new another file named lorry_roi_regions.py to recognize digit from ROI image after annotation,so the classes are 11,ie,background,0,1,2,3,4,5,6,7,8,9,modify any needed.
keep an eye on the format of image.bmp of jpg.
2.cd wwb/lib/datasets,add your train part in factory.py,like this :
from datasets.container_lorry import container_lorry
from datasets.lorry_roi_regions import lorry_roi_regions
for split in [‘train’, ‘test’]:
name = ‘{}_{}’.format(‘lorry’, split)
__sets[name] = (lambda split=split: container_lorry(split, lorry_devkit_path))
for split in [‘train’, ‘test’]:
name = ‘{}_{}’.format(‘lorry_roi’, split)
__sets[name] = (lambda split=split: lorry_roi_regions(split, lorry_roi_devkit_path))
3.cd wwb/experiments/cfgs,new a container_lorry.yml and file named container_lorry_roi.yml,like this :
EXP_DIR: container_lorry
MODELS_DIR: models/container_lorry
TRAIN:
BG_THRESH_LO: 0.0
TEST:
HAS_RPN: True
4.
cd wwb/models,new a folder named container_lorry for ROI detect and lorry_roi_regions for object detect in ROI Image.the container_lorry contains ZF folder,modefy the folder named :faster_rcnn_alt_opt,refer to the link to adapt network model(ZF):https://github.com/deboc/py-faster-rcnn/blob/master/help/Readme.md.
keep an eye on the format of image.bmp of jpg.
2.cd wwb/lib/datasets,add your train part in factory.py,like this :
from datasets.container_lorry import container_lorry
from datasets.lorry_roi_regions import lorry_roi_regions
train container lorry
lorry_devkit_path = ‘data/containerLorry’for split in [‘train’, ‘test’]:
name = ‘{}_{}’.format(‘lorry’, split)
__sets[name] = (lambda split=split: container_lorry(split, lorry_devkit_path))
train container lorry ROI regions
lorry_roi_devkit_path = ‘data/LorryROIRegions’for split in [‘train’, ‘test’]:
name = ‘{}_{}’.format(‘lorry_roi’, split)
__sets[name] = (lambda split=split: lorry_roi_regions(split, lorry_roi_devkit_path))
3.cd wwb/experiments/cfgs,new a container_lorry.yml and file named container_lorry_roi.yml,like this :
EXP_DIR: container_lorry
MODELS_DIR: models/container_lorry
TRAIN:
BG_THRESH_LO: 0.0
TEST:
HAS_RPN: True
4.
cd wwb/models,new a folder named container_lorry for ROI detect and lorry_roi_regions for object detect in ROI Image.the container_lorry contains ZF folder,modefy the folder named :faster_rcnn_alt_opt,refer to the link to adapt network model(ZF):https://github.com/deboc/py-faster-rcnn/blob/master/help/Readme.md.
相关文章推荐
- 用sklearn.model_selection.train_test_split进行机器学习数据及划分
- Inside The C++ object model:note(3)
- READING NOTE: Face Detection with End-to-End Integration of a ConvNet and a 3D Model
- sklearn.model_selection.train_test_split
- Java Instance return model note!
- Inside The C++ Object Model(Note):sizeof in an object
- 论文阅读(2)-Toward Real-Time Pedestrain Detection Based on a Deformable Template Model
- sklearn.model_selection中的train_test_split使用方法,分割数据集,划分训练集和测试集
- HBase note. Data model
- Max Entropy Model study note
- nn pic model preprocess note
- Inside The C++ Object Model(Note):Member Initialization List
- sklearn.model_selection.train_test_split随机划分训练集和测试集
- 使用PyTorch进行训练和测试时一定注意要把实例化的model指定train/eval
- sklearn.model_selection.train_test_split划分训练集和测试集
- train data 和 model bias 对 Mutilayer Perceptrons 的影响
- CalTech machine learning, video 9 Review note(the Linear Model II)
- 浅谈隐式马尔可夫模型 - A Brief Note of Hidden Markov Model (HMM)
- API详解:sklearn.model_selection.train_test_split
- 百度文库机器学习第六节 note model selection