Skip to content

How to use custom trained model as backbone? #1981

Answered by samet-akcay
lathashree01 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, we didn't really considers custom models for feature extraction. We thought timm or torchfx feature extractors are usually of interest.

What I would do for now is to directly customize patchcore and modify this bit however you like

self.feature_extractor = TimmFeatureExtractor(
backbone=self.backbone,
pre_trained=pre_trained,
layers=self.layers,
).eval()

Meanwhile, we could think about how to address this

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@lathashree01
Comment options

@lathashree01
Comment options

Comment options

You must be logged in to vote
1 reply
@blaz-r
Comment options

Comment options

You must be logged in to vote
2 replies
@lathashree01
Comment options

@blaz-r
Comment options

Answer selected by lathashree01
Comment options

You must be logged in to vote
7 replies
@alexriedel1
Comment options

@watertianyi
Comment options

@alexriedel1
Comment options

@alexriedel1
Comment options

@watertianyi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1978 on April 11, 2024 09:24.