Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reduce the jagged edge #37

Open
shippingwang opened this issue Apr 16, 2024 · 2 comments
Open

How to reduce the jagged edge #37

shippingwang opened this issue Apr 16, 2024 · 2 comments

Comments

@shippingwang
Copy link

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

@shenyunhang
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants