Skip to content

How to use models with timm's arch #685

Answered by rsomani95
chchch0109 asked this question in Q&A
Discussion options

You must be logged in to vote

@ChChCh8 this is doable already. look at any of the convnext_* models, they're all coming from timm. Here's an example cfg:

{
"embed_dim": 640,
"vision_cfg": {
"timm_model_name": "convnext_base",
"timm_model_pretrained": false,
"timm_pool": "",
"timm_proj": "linear",
"timm_drop": 0.0,
"timm_drop_path": 0.1,
"image_size": 256
},
"text_cfg": {
"context_length": 77,
"vocab_size": 49408,
"width": 640,
"heads": 10,
"layers": 12
}
}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by chchch0109
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chchch0109
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
3 participants
Converted from issue

This discussion was converted from issue #663 on October 20, 2023 23:38.