Skip to content
New issue

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

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

Already on GitHub? # to your account

Downstream Fine-tuning for Segmentation Task #28

Open
KOO-DE opened this issue Feb 17, 2025 · 3 comments
Open

Downstream Fine-tuning for Segmentation Task #28

KOO-DE opened this issue Feb 17, 2025 · 3 comments

Comments

@KOO-DE
Copy link

KOO-DE commented Feb 17, 2025

Hello.

I looked into the train.py file inside the TransUNet folder to fine-tune the segmentation task using the endo_fm.pth file. However, I couldn't find any code that declares the pretrained weights. Could you please guide me on how to utilize endo_fm.pth?

Thank you.

@Kyfafyd
Copy link
Member

Kyfafyd commented Feb 17, 2025

Hi, @KOO-DE thanks for your interest in our work!
The pre-trained weight is loaded here:

weight = '../checkpoints/endo_fm.pth'

@KOO-DE
Copy link
Author

KOO-DE commented Feb 17, 2025

I have reviewed the code you provided. Thank you so much for your response.

To obtain segmentation results using Endo-FM as described in the paper, should I use the ViT model (R50-ViT-B_16) pretrained on imagenet21k?

@Kyfafyd
Copy link
Member

Kyfafyd commented Feb 18, 2025

Hi, @KOO-DE you may load our pre-trained weights endo_fm.pth for segmentation fine-tuning. The original TransUNet used the pre-trained weights on ImageNet, which may be not fit in endoscopy scenario due to domain gap.

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

No branches or pull requests

2 participants