Closed xXCoffeeColaXc closed 4 months ago
Convert the Weight File: Run the following command to convert the weight file:
python tools/convert_models/convert_dinov2.py checkpoints/dinov2_vitl14_pretrain.pth checkpoints/dinov2_converted_1024x1024.pth --height 128 --width 128
Update Dataset Configuration:
Modify the following keys in configs.datasets
:
crop_size
scale
Update Model Configuration:
Adjust these key arguments in configs.models
:
crop_size
img_size
test_cfg.crop_size
test_cfg.stride
Adjust Final Configuration Scales:
Change the scales
parameter in the final configurations to meet your specific requirements.
Hello!
Can I convert the model to be able to pass through images with 128 x 128 dim ? After converting with your script, run inference with this converted model. I guess I would have to change the config file as well, but it is possible ?
Thanks