Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Finetune SemanticSegmentation with ImageEmbedder backbone #1289

Open
ethanwharris opened this issue Apr 11, 2022 Discussed in #1288 · 3 comments
Open

Finetune SemanticSegmentation with ImageEmbedder backbone #1289

ethanwharris opened this issue Apr 11, 2022 Discussed in #1288 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@ethanwharris
Copy link
Collaborator

Discussed in #1288

Originally posted by sirtris April 11, 2022
Hi,
I have pre-trained my own network backbone using the ImageEmbedder. I would now use this model in a down-stream segmentation task. How could I do this?

For a classification task I would try:
model = ImageClassifier.load_from_checkpoint("image_classification_model.pt")
The problem is that the SemanticSegmentation() has no function load_from_checkpoint

Thanks

@ethanwharris ethanwharris added the enhancement New feature or request label Apr 11, 2022
@ethanwharris ethanwharris added this to the 0.8.0 milestone Apr 11, 2022
@sirtris
Copy link

sirtris commented Apr 29, 2022

For the meantime are there any suggestions for a workaround?
I usually use the Segmentation Models Pytorch library. Is there a way to use the backbone in one of their models?

@aniketmaurya
Copy link
Contributor

aniketmaurya commented May 2, 2022

hi @sirtris, the Segmentation task uses SMP for creating the backbone (encoder) and head (decoder) of the segmentation model. And in-order to create a head you need to pass the backbone to the head constructor.

To use a custom backbone you might have to make change to create_model(...) function of the SMP library instead.

@ethanwharris ethanwharris modified the milestones: 0.8.0, 0.9.0 Jun 29, 2022
@stale
Copy link

stale bot commented Sep 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the won't fix This will not be worked on label Sep 22, 2022
@ethanwharris ethanwharris removed the won't fix This will not be worked on label Oct 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants