下面是代码 roidb.pyimportnumpy as npfromfast_rcnn.configimportcfgfromfast_rcnn.bbox_transformimportbbox_transformfromutils.cython_bboximportbbox_overlapsimportPILdefprepare_roidb(imdb):#给原始roidata添加一些说明性的附加属性"""Enrich the imdb's roidb by adding some derived quantities that are usef...
# train_net.py#!/usr/bin/env python # --- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # --- """Train a Fast R-CNN network on a region of interest database.""" import _init_paths from fas...
代码解析 importosimportos.path as ospimportnumpy as np#`pip install easydict` if you don't have itfromeasydictimportEasyDict as edict__C=edict()#Consumers can get config by:#在其他文件使用config要加的命令,例子见train_net.py#from fast_rcnn_config import cfgcfg =__C# #Training options#训...