ultralytics / assets

Ultralytics assets

Home Page:https://ultralytics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the parameters of 'mask_ratio' and 'overlap_mask'

wwt123-star opened this issue · comments

From the default.yaml we know the default of 'mask_ratio' = 4, but i have no idea why it was set to 4. And what's the influence of 'overlap_mask'=True or False?

@wwt123-star the 'mask_ratio' parameter controls the size of the masks applied to the anchors, and the value of 4 is chosen based on empirical observations to achieve a good balance between coverage and accuracy. The 'overlap_mask' parameter, when set to True, allows the masks to overlap, which can improve accuracy by capturing more detailed features but may also increase computation time. When set to False, the masks do not overlap, potentially reducing accuracy but also speeding up computation.