當前位置: 首頁>>代碼示例>>Python>>正文


Python mmcv.imshow_bboxes方法代碼示例

本文整理匯總了Python中mmcv.imshow_bboxes方法的典型用法代碼示例。如果您正苦於以下問題:Python mmcv.imshow_bboxes方法的具體用法?Python mmcv.imshow_bboxes怎麽用?Python mmcv.imshow_bboxes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mmcv的用法示例。


在下文中一共展示了mmcv.imshow_bboxes方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: show_result

# 需要導入模塊: import mmcv [as 別名]
# 或者: from mmcv import imshow_bboxes [as 別名]
def show_result(self, data, result, dataset=None, top_k=20):
        """Show RPN proposals on the image.

        Although we assume batch size is 1, this method supports arbitrary
        batch size.
        """
        img_tensor = data['img'][0]
        img_metas = data['img_metas'][0].data[0]
        imgs = tensor2imgs(img_tensor, **img_metas[0]['img_norm_cfg'])
        assert len(imgs) == len(img_metas)
        for img, img_meta in zip(imgs, img_metas):
            h, w, _ = img_meta['img_shape']
            img_show = img[:h, :w, :]
            mmcv.imshow_bboxes(img_show, result, top_k=top_k) 
開發者ID:open-mmlab,項目名稱:mmdetection,代碼行數:16,代碼來源:rpn.py

示例2: show_result

# 需要導入模塊: import mmcv [as 別名]
# 或者: from mmcv import imshow_bboxes [as 別名]
def show_result(self, data, result, img_norm_cfg, dataset=None, top_k=20):
        """Show RPN proposals on the image.

        Although we assume batch size is 1, this method supports arbitrary
        batch size.
        """
        img_tensor = data['img'][0]
        img_metas = data['img_meta'][0].data[0]
        imgs = tensor2imgs(img_tensor, **img_norm_cfg)
        assert len(imgs) == len(img_metas)
        for img, img_meta in zip(imgs, img_metas):
            h, w, _ = img_meta['img_shape']
            img_show = img[:h, :w, :]
            mmcv.imshow_bboxes(img_show, result, top_k=top_k) 
開發者ID:dingjiansw101,項目名稱:AerialDetection,代碼行數:16,代碼來源:rpn.py

示例3: show_result

# 需要導入模塊: import mmcv [as 別名]
# 或者: from mmcv import imshow_bboxes [as 別名]
def show_result(self, data, result, dataset=None, top_k=20):
        """Show RPN proposals on the image.

        Although we assume batch size is 1, this method supports arbitrary
        batch size.
        """
        img_tensor = data['img'][0]
        img_metas = data['img_meta'][0].data[0]
        imgs = tensor2imgs(img_tensor, **img_metas[0]['img_norm_cfg'])
        assert len(imgs) == len(img_metas)
        for img, img_meta in zip(imgs, img_metas):
            h, w, _ = img_meta['img_shape']
            img_show = img[:h, :w, :]
            mmcv.imshow_bboxes(img_show, result, top_k=top_k) 
開發者ID:tascj,項目名稱:kaggle-kuzushiji-recognition,代碼行數:16,代碼來源:rpn.py

示例4: show_result

# 需要導入模塊: import mmcv [as 別名]
# 或者: from mmcv import imshow_bboxes [as 別名]
def show_result(self, data, result, img_norm_cfg):
        """Show RPN proposals on the image.

        Although we assume batch size is 1, this method supports arbitrary
        batch size.
        """
        img_tensor = data['img'][0]
        img_metas = data['img_meta'][0].data[0]
        imgs = tensor2imgs(img_tensor, **img_norm_cfg)
        assert len(imgs) == len(img_metas)
        for img, img_meta in zip(imgs, img_metas):
            h, w, _ = img_meta['img_shape']
            img_show = img[:h, :w, :]
            mmcv.imshow_bboxes(img_show, result, top_k=20) 
開發者ID:chanyn,項目名稱:Reasoning-RCNN,代碼行數:16,代碼來源:rpn.py


注:本文中的mmcv.imshow_bboxes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。