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

Feature Request : Segmentation model #2

Open
bluesky314 opened this issue Mar 29, 2020 · 5 comments
Open

Feature Request : Segmentation model #2

bluesky314 opened this issue Mar 29, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@bluesky314
Copy link

The paper lists an easy way to use the model for segmentation. I really hope there is enough flexibility in your code to allow for that alteration.

Following [16], we modify our EfficientDet model to keep feature level {P2,P3,...,P7} in BiFPN, but only use P2 for the fi- nal per-pixel classification. For simplicity, here we only evaluate a EfficientDet-D4 based model, which uses a Ima- geNet pretrained EfficientNet-B4 backbone (similar size to ResNet-50). We set the channel size to 128 for BiFPN and 256 for classification head. Both BiFPN and classification head are repeated by 3 times.

@rwightman
Copy link
Owner

@bluesky314 I would like to try this, but need to get obj detection training running first, a bit busy for a while so not sure when I'll get to it quite yet

@bluesky314
Copy link
Author

Ok, I think if you get OD to run then most of the coding work would be done. We only need to add another path by changing bifpn_sum_config. Then we just take the last P2 and attach a segmentation head.

@rwightman
Copy link
Owner

rwightman commented Apr 11, 2020

@bluesky314 yeah, it should be fairly straight forward, but still making big improvements in the core model/post processing.

One concern I have with the segmentation with the Tensowflow SAME equivalent padding enabled is that the feature maps are likely not lined up well (the reason for aligned Xception for DeepLab). Symmetric PyTorch style padding will likely be better there as that is essnetially what aligned Xception was, manually implement PyTorch padding in TF. That should be easy to flip for this code base, but may require some tweaks to make the map sizing sensible.

@rwightman rwightman added the enhancement New feature or request label May 26, 2020
@lucasjinreal
Copy link

@rwightman Do u have plan to switch Yolact backbone to efficientnet to do instance segmentation? It's also most same in terms of objecet detection part (only difference is backbone and FPN) both retina architecture and design. it would be very awsome if instance segmentation implemented upon efficientdet. (I believe Yolact is at the bottle neck of it's detector, but it's simplicity and speed quite amazing)

@faheemullah
Copy link

faheemullah commented Nov 10, 2021

@rwightman, @bluesky314, How will be its diagram if we add segmentation also to EfficientDet in order to get results like Mask R-CNN? The paper has explained briefly but I couldn't get that.

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

No branches or pull requests

4 participants