CoolFace
Modelpublic

torchgeo/resnet50_fmow_rgb_gassl

sourceHugging Facecc-by-4.0updated 1y agoView on Hugging Face
0likes218downloads
Model Card

Weights for the MoCo-v2+Geo+TP model from https://github.com/sustainlab-group/geography-aware-ssl, adapted to only extract the encoder using the following code:

python
import torch

x = torch.load("moco_geo+tp.pth", map_location="cpu")
x = x["state_dict"]
x = {k.replace("module.encoder_q.", ""): v for k, v in x.items() if "encoder_q" in k and "fc" not in k}
torch.save(x, "resnet50_fmow_rgb_gassl-44b4461b.pth")