Open hezhengting opened 11 months ago
You also need to change the backbone used for building the prototypes.
So instead of model = torch.hub.load('facebookresearch/dinov2', 'dinov2_vitl14')
in demo/build_prototypes.ipynb, you have to modify to dinov2_vits14
Hope it helps
I modified demo\demo.py to use vits like def main(
config_file="configs/open-vocabulary/lvis/vitl.yaml",
but i got error feats = roi_features.transpose(-2, -1) @ class_weights.T RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [1000, 384] but got: [1000, 1024].
I guess configs/RPN/mask_rcnn_R_50_FPN_1x.yaml needs to be modified accordingly. Can you provide it? Thanks.