本文整理匯總了Python中predictor.COCODemo方法的典型用法代碼示例。如果您正苦於以下問題:Python predictor.COCODemo方法的具體用法?Python predictor.COCODemo怎麽用?Python predictor.COCODemo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類predictor
的用法示例。
在下文中一共展示了predictor.COCODemo方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: import predictor [as 別名]
# 或者: from predictor import COCODemo [as 別名]
def __init__(
self,
region_type,
ground_level,
ground_removal_th,
use_maskrcnn,
city_name,
min_point_num,
dbscan_eps,
calib_data,
path_debug_output,
ground_removal_method,
dataset_name,
path_rcnn_config="../mask_rcnn/models/e2e_mask_rcnn_R_50_FPN_1x.yaml",
):
self.region_type = region_type
self.ground_level = ground_level
self.ground_removal_th = ground_removal_th
self.use_maskrcnn = use_maskrcnn
self.city_name = city_name
self.min_point_num = min_point_num
self.dbscan_eps = dbscan_eps
self.calib_data = calib_data
self.path_debug_output = path_debug_output
self.ground_removal_method = ground_removal_method
self.dataset_name = dataset_name
if use_maskrcnn:
cfg.merge_from_file(path_rcnn_config)
cfg.freeze()
# using setting in official demo
coco_demo_detector = COCODemo(
cfg,
confidence_threshold=0.7,
min_image_size=224,
)
self.mask_rcnn_detector = coco_demo_detector