make dinov2 support export to onnx

pull/498/head
Wala-Touati 2025-02-06 20:55:21 +00:00
parent 9eac5f063e
commit fd9fb1f8d3
2 changed files with 4 additions and 4 deletions

View File

@ -337,7 +337,7 @@ def init_weights_vit_timm(module: nn.Module, name: str = ""):
nn.init.zeros_(module.bias)
def vit_small(patch_size=1, attn_class: nn.Module = MemEffAttention, num_register_tokens=0, **kwargs):
def vit_small(patch_size=16, attn_class: nn.Module = MemEffAttention, num_register_tokens=0, **kwargs):
model = DinoVisionTransformer(
patch_size=patch_size,
embed_dim=384,

View File

@ -1,11 +1,11 @@
--extra-index-url https://download.pytorch.org/whl/cu117
torch==2.0.0
--extra-index-url https://download.pytorch.org/whl/cu124
torch==2.5.1
torchvision==0.15.0
omegaconf
torchmetrics==0.10.3
fvcore
iopath
xformers==0.0.18
#xformers ==0.0.18
submitit
--extra-index-url https://pypi.nvidia.com
cuml-cu11