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

[Model] Transformer (MiT or SwinT) + Lawin #42

Open
Dongwoo-Im opened this issue May 4, 2022 · 3 comments
Open

[Model] Transformer (MiT or SwinT) + Lawin #42

Dongwoo-Im opened this issue May 4, 2022 · 3 comments
Labels
💡 experiment Experiment for performance improvement 🙏 help wanted Extra attention is needed
Milestone

Comments

@Dongwoo-Im
Copy link
Contributor

Dongwoo-Im commented May 4, 2022

Background

image
Cityspace dataset에서 좋은 성능을 보이고 있는 Lawin Transformer를 mmseg 기반으로 학습시켜 보고자 합니다.

Content

Backbone : Transformer (MiT or SwinT)
Encoder > Decoder : LawinASPP (이 부분은 github에 없는것 같기는 합니다.)
Decoder : Lawin Head (Multi)
image

Details

paper : https://arxiv.org/pdf/2201.01615.pdf
github : https://github.com/yan-hao-tian/lawin/blob/main/lawin_head.py

@Dongwoo-Im Dongwoo-Im added the 💡 experiment Experiment for performance improvement label May 4, 2022
@Dongwoo-Im Dongwoo-Im added this to the Experiments milestone May 4, 2022
@Dongwoo-Im Dongwoo-Im self-assigned this May 4, 2022
@Dongwoo-Im Dongwoo-Im added this to To do in Semantic segmentation via automation May 4, 2022
@hyoseok1223
Copy link
Contributor

제가 확인해본게 저 MiT인데, 꽤나 무겁고 weight load가 잘 안되는 것 같습니다.
Segformer Weight Issue참고하셔도 도움이 될 것 같습니다.

@Dongwoo-Im
Copy link
Contributor Author

Dongwoo-Im commented May 4, 2022

우선 위에 첨부한 github의 custom head를 추가하려 했는데, build 에러가 생겨서 이 방법은 포기했습니다.
지금 시도중인 방법은 semseg 라이브러리를 사용하는 것인데, 일단은 한 번 돌려보는 것을 목표로 하고 있습니다!

제가 생각한 장점은 다음과 같습니다.

  • 최신 모델 다수 보유
  • 편리한 config (이걸 진작에 봤으면 torch config를 훨씬 잘 만들 수 있었을 것 같네요.)
  • pytorch base로 작성되어서 custom 하기 수월할 것으로 예상
  • mmseg와 유사한 메커니즘으로 setup 가능 (mmseg data 폴더 복붙해서 이름만 바꿔주면 됩니다.)
  • pytorch & torchvision version 문제가 있었는데, 규범 캠퍼님 글 참고해서 cuda 버전 & pytorch 버전 바꾸는 것으로 해결
  • 그런데 이제 와서 이걸 쓰자니 조금 고민되기도 하네요.. 내일 15시에 한 번 보여드리겠습니다.

semseg : https://github.com/sithu31296/semantic-segmentation

@Dongwoo-Im
Copy link
Contributor Author

Dongwoo-Im commented May 4, 2022

semseg 쓰면서 CUDA Error가 계속 뜨는데, 이걸 하나하나 뜯어보는게 맞나 싶어서 나중에 여유있을 때 다시 해보곘습니다..!

결론은 Lawin 폐기입니다.

@Dongwoo-Im Dongwoo-Im removed their assignment May 4, 2022
@Dongwoo-Im Dongwoo-Im added the 🙏 help wanted Extra attention is needed label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 experiment Experiment for performance improvement 🙏 help wanted Extra attention is needed
Development

No branches or pull requests

2 participants