-
hello im newcommer of ML DL Engeneer. I revised mask rcnnn webcam module to stream on local and network. Now i have only little things to do on my project, and it is the warn someone when specific segmentation(CLASSES tuple 0) I tryed to figure out or measure the size of segm, with debuging, finding in source codes and googling all weaks. So I temporarily added the code like Can any one help me? ` Copyright (c) OpenMMLab. All rights reserved.import argparse import cv2 from mmdet.apis import inference_detector, init_detector logger = logging.getLogger(name) streamhandler = logging.StreamHandler() timedfilehandler = def detect():
` |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
mmdetection/mmdet/core/mask/structures.py Lines 301 to 303 in ae453fa guys i found this. But still don't know how to use it.. def areas(self): |
Beta Was this translation helpful? Give feedback.
-
Did you solve this problem? I also want to develop similar functional modules |
Beta Was this translation helpful? Give feedback.
-
yeah i found some matters. i will send you if you want to see. when i go to
my office to work. today is sunday :)
2022년 10월 18일 (화) 오후 5:52, AristotleWang ***@***.***>님이 작성:
… Did you solve this problem? I also want to develop similar functional
modules
—
Reply to this email directly, view it on GitHub
<#7939 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWAGHIZYGRJBMEZ2K2CQZQDWDZQN5ANCNFSM5VNAX5XQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
mmdetection/mmdet/core/mask/structures.py
Lines 301 to 303 in ae453fa
guys i found this.
But still don't know how to use it..
def areas(self):
"""See :py:attr:
BaseInstanceMasks.areas
."""return self.masks.sum((1, 2))