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

Simple SegFormer network class #22

Closed
rose-jinyang opened this issue Jun 24, 2021 · 6 comments
Closed

Simple SegFormer network class #22

rose-jinyang opened this issue Jun 24, 2021 · 6 comments

Comments

@rose-jinyang
Copy link

rose-jinyang commented Jun 24, 2021

Hello
How are you?
Thanks for contributing to this project.
It is difficult for us to use this project because it contains many other scripts.
Did u check https://github.com/lucidrains/segformer-pytorch which is a third-party implementation for SegFormer?
This project contains ONLY a simple segformer network class so it is easy to use.
But the number of params of MiT-B0 network by this implementation is 7M.
I know that the number of params of MiT-B0 is 3.6M in the paper.
Could u check https://github.com/lucidrains/segformer-pytorch shortly?
If it is difficult, could u make the SegFormer network class like the above implementation?
Thanks

@xieenze
Copy link
Contributor

xieenze commented Jun 24, 2021

Hi,
Thanks for your interest. I have checked the repo you referred. It is easy to read, but I think it only contains the network part, which is not enough for one to train and evaluate on several datasets.

On the other hand, openmmlab's mmsegmentation is a very advanced toolbox for semantic segmentation, it also has detailed documents for a beginner to easily get started.

So I prefer to use mmsegmentation to implement the SegFormer, without mmsegmentation, SegFormer cannot easily support several datasets and different encoders.
You may first learn how to use mmsegmentation following the get_started.md. I believe it is easy to figure it out.

@rose-jinyang
Copy link
Author

Thanks for your reply.
Could u check https://github.com/lucidrains/segformer-pytorch shortly if there is any issue for MiT B0?
If it is difficult, could u make the simple SegFormer network class like the above implementation?
Thanks

@xieenze
Copy link
Contributor

xieenze commented Jun 24, 2021

Will consider checking it when I am free.

@xieenze xieenze closed this as completed Jun 24, 2021
@rose-jinyang
Copy link
Author

Could u make the simple SegFormer network class like the above implementation?

@xieenze
Copy link
Contributor

xieenze commented Jun 24, 2021

Could u make the simple SegFormer network class like the above implementation?

Will consider to do it when I have time :)

@rose-jinyang
Copy link
Author

Thanks

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