yolact icon indicating copy to clipboard operation
yolact copied to clipboard

Measure mask area

Open ghost opened this issue 5 years ago • 4 comments
trafficstars

Hi, is there possibly a way to record the pixel area of the masks per unit time?

ghost avatar Dec 03 '19 06:12 ghost

Hi, is there possibly a way to record the pixel area of the masks per unit time?

What do you mean by per unit time?

Do you want to calculate the area of the masks in instance segmentation in real-time?

ljjyxz123 avatar Dec 03 '19 06:12 ljjyxz123

Yes, and also log the area of the masks for every frame I guess?

ghost avatar Dec 06 '19 10:12 ghost

You'll have to implement that yourself, but masks are created here: https://github.com/dbolya/yolact/blob/02bde378e98cd7e2831639ff782c1f5a5046771a/eval.py#L155

All eval options use the same code to generate and display masks, so implement your logging code here and then use any of the video options to run.

dbolya avatar Dec 06 '19 23:12 dbolya

Hi, is there possibly a way to record the pixel area of the masks per unit time?

Brother, how is it, did you calculate the mask area?

shihaojie123 avatar Oct 20 '22 08:10 shihaojie123