Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valhassan committed Dec 6, 2024
1 parent 2791f4f commit c99d277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo_deep_learning/models/dofa/dofa_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def forward(self, x: Tensor):
return outs

def dofa_encoder_base(pretrained: bool = True, *args: Any, **kwargs: Any):
url: str = "https://huggingface.co/XShadow/DOFA/resolve/main/DOFA_ViT_base_e120.pth"
url: str = "https://huggingface.co/XShadow/DOFA/resolve/main/DOFA_ViT_base_e100.pth"
model_dict = torch.hub.load_state_dict_from_url(url, progress=True, map_location='cpu')
del model_dict["mask_token"]
del model_dict["norm.weight"], model_dict["norm.bias"]
Expand Down

0 comments on commit c99d277

Please sign in to comment.