Open zhlhlhlhl opened 1 month ago
Hi @zhlhlhlhl
Go ahead! It's highly flexible.
Really appreciate your prompt responese! I'll try this ASAP. BTW, do you think the feature generated by a larger student backbone will perform better in vision tasks?
After training, I only got .pth files. How do I load these weights?
larger student backbone for better vision tasks
It's highly possible!
load weights
I mean, if I want to use AutoModel.from_pretrained to load the model, it lacks files such as config.json and theia_model.py, where I can get these?
If I understand it correctly, you want to use AutoModel.from_pretrained
but to load local weights. Here are the steps:
model = AutoModel.from_pretrained()
. Whatever weights.model.load_pretrained_weights(<checkpoint_path>)
. The same as https://github.com/bdaiinstitute/theia/blob/9ee7548829088e1a7dae6a033dfb6b520656c1f2/src/theia/models/rvfm.py#L77
Hi, I'm curious about if Theia can change the backbone of the student model. Now you are using DEIT-base-patch-16-224, I want to use a pre-trained larger model like clip-vit-base-patch32 to distill other VFMs. Do you think it's feasible?