当前位置: 首页>>代码示例>>Python>>正文


Python roidb.prepare_roidb方法代码示例

本文整理汇总了Python中roi_data_layer.roidb.prepare_roidb方法的典型用法代码示例。如果您正苦于以下问题:Python roidb.prepare_roidb方法的具体用法?Python roidb.prepare_roidb怎么用?Python roidb.prepare_roidb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在roi_data_layer.roidb的用法示例。


在下文中一共展示了roidb.prepare_roidb方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
  """Returns a roidb (Region of Interest database) for use in training."""
  if cfg.TRAIN.USE_FLIPPED:
    print('Appending horizontally-flipped training examples...')
    imdb.append_flipped_images()
    print('done')
  if cfg.TRAIN.USE_NOISE_AUG:
    print('Appending noise to training examples...')
    imdb.append_noise_images()
    print('done')
  if cfg.TRAIN.USE_JPG_AUG:
    print('Appending jpg compression to training examples...')
    imdb.append_jpg_images()
    print('done')

  print('Preparing training data...')
  rdl_roidb.prepare_roidb(imdb)
  print('done')

  return imdb.roidb 
开发者ID:pengzhou1108,项目名称:RGB-N,代码行数:22,代码来源:train_val.py

示例2: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print 'Appending horizontally-flipped training examples...'
        imdb.append_flipped_images()
        print 'done'

    print 'Preparing training data...'
    if cfg.TRAIN.HAS_RPN:
        if cfg.IS_MULTISCALE:
            gdl_roidb.prepare_roidb(imdb)
        else:
            rdl_roidb.prepare_roidb(imdb)
    else:
        rdl_roidb.prepare_roidb(imdb)
    print 'done'

    return imdb.roidb 
开发者ID:smallcorgi,项目名称:Faster-RCNN_TF,代码行数:20,代码来源:train.py

示例3: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""

    if cfg.TRAIN.USE_FLIPPED:
        print 'Appending horizontally-flipped training examples...'
        imdb.append_flipped_images()
        print 'done'

    if cfg.TRAIN.RANDOM_CROP_SCALE:
        print 'Appending pyramid cropped images...'
        imdb.append_cropped_scale_images()

    print 'Preparing training data...'
    rdl_roidb.prepare_roidb(imdb)
    print 'done'

    return imdb.roidb 
开发者ID:po0ya,项目名称:face-magnet,代码行数:19,代码来源:train.py

示例4: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print 'Appending horizontally-flipped training examples...'
        imdb.append_flipped_images()
        print 'done'

    print 'Preparing training data...'
    if cfg.IS_RPN:
        if cfg.IS_MULTISCALE:
            gdl_roidb.prepare_roidb(imdb)
        else:
            rdl_roidb.prepare_roidb(imdb)
    else:
        rdl_roidb.prepare_roidb(imdb)
    print 'done'

    return imdb.roidb 
开发者ID:tanshen,项目名称:SubCNN,代码行数:20,代码来源:train.py

示例5: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
  """Returns a roidb (Region of Interest database) for use in training."""
  if cfg.TRAIN.USE_FLIPPED:
    print('Appending horizontally-flipped training examples...')
    imdb.append_flipped_images()
    print('done')

  print('Preparing training data...')
  rdl_roidb.prepare_roidb(imdb)
  print('done')

  return imdb.roidb 
开发者ID:Sunarker,项目名称:Collaborative-Learning-for-Weakly-Supervised-Object-Detection,代码行数:14,代码来源:train_val.py

示例6: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print('Appending horizontally-flipped training examples...')
        imdb.append_flipped_images()
        print('done')

    print('Preparing training data...')
    rdl_roidb.prepare_roidb(imdb)
    print('done')

    return imdb.roidb 
开发者ID:wanjinchang,项目名称:SSH-TensorFlow,代码行数:14,代码来源:train_val.py

示例7: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print('Appending horizontally-flipped training examples...')
        imdb.append_flipped_images()
        print('done')

    print('Preparing training data...')
    rdl_roidb.prepare_roidb(imdb)
    print('done')
    return imdb.roidb 
开发者ID:Sanster,项目名称:tf_ctpn,代码行数:13,代码来源:train_val.py

示例8: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print 'Appending horizontally-flipped training examples...'
        imdb.append_flipped_images()
        print 'done'

    print 'Preparing training data...'
    rdl_roidb.prepare_roidb(imdb)
    print 'done'

    return imdb.roidb 
开发者ID:ppengtang,项目名称:dpl,代码行数:14,代码来源:train.py

示例9: get_training_roidb

# 需要导入模块: from roi_data_layer import roidb [as 别名]
# 或者: from roi_data_layer.roidb import prepare_roidb [as 别名]
def get_training_roidb(imdb):
    """Returns a roidb (Region of Interest database) for use in training."""
    if cfg.TRAIN.USE_FLIPPED:
        print 'Appending horizontally-flipped training examples...'
        imdb.append_flipped_images()
        print 'done'

    print 'Preparing training data...'
    if cfg.TRAIN.HAS_RPN:
        rdl_roidb.prepare_roidb(imdb)
    else:
        rdl_roidb.prepare_roidb(imdb)
    print 'done'

    return imdb.roidb 
开发者ID:chenwuperth,项目名称:rgz_rcnn,代码行数:17,代码来源:train.py


注:本文中的roi_data_layer.roidb.prepare_roidb方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。