APE icon indicating copy to clipboard operation
APE copied to clipboard

How to reduce the jagged edge

Open shippingwang opened this issue 10 months ago • 2 comments

After testing with_mask in default demo_lazy.py There are jagged edges around the body that cannot be ignored, Is it not good enough? or should I adjust some args to improve, like resolution? in addition, how to merge stuff areas? APE doesn't tell the diff between stuff and thing? wecom-temp-470919-6c84d801994da6df6e82b06964d0f595

shippingwang avatar Apr 16 '24 07:04 shippingwang

It is indeed not good enough. APE only uses a simple segmentation module.

We have used Grabcut to improve results, which will take more time in inference.

To enable Grabcut in the demo, the following line should be uncommented:

https://github.com/shenyunhang/APE/blob/main/demo/predictor_lazy.py#L233

This line should remove and False: https://github.com/shenyunhang/APE/blob/main/demo/predictor_lazy.py#L245

shenyunhang avatar May 08 '24 02:05 shenyunhang

APE does not distinguish things and stuff. We can merge all segmentation of the same classes by passing the --with_sseg option to the demo. The merge operation is at https://github.com/shenyunhang/APE/blob/main/ape/modeling/ape_deta/deformable_detr_segm_vl.py#L875.

shenyunhang avatar May 08 '24 02:05 shenyunhang