本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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