train model note

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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值