我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用fast_rcnn.config.cfg.IS_EXTRAPOLATING。
def _get_blobs(im, rois): """Convert an image and RoIs within that image into network inputs.""" if cfg.TEST.HAS_RPN: blobs = {'data' : None, 'rois' : None} blobs['data'], im_scale_factors = _get_image_blob(im) else: blobs = {'data' : None, 'rois' : None} blobs['data'], im_scale_factors = _get_image_blob(im) if cfg.IS_MULTISCALE: if cfg.IS_EXTRAPOLATING: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES) else: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES_BASE) else: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES_BASE) return blobs, im_scale_factors
def _get_blobs(im, rois): """Convert an image and RoIs within that image into network inputs.""" if cfg.IS_RPN: blobs = {'data' : None, 'boxes_grid' : None} blobs['data'], im_scale_factors = _get_image_blob(im) blobs['boxes_grid'] = rois else: blobs = {'data' : None, 'rois' : None} blobs['data'], im_scale_factors = _get_image_blob(im) if cfg.IS_MULTISCALE: if cfg.IS_EXTRAPOLATING: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES) else: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES_BASE) else: blobs['rois'] = _get_rois_blob(rois, cfg.TEST.SCALES_BASE) return blobs, im_scale_factors