Fix the PyTorch example
Browse files87 unmodified lines88899091929394956 unmodified lines10210310410510610710810987 unmodified lines```pythonimport timmfrom safetensors.torch import load_fileweights = load_file(f"{folder}/base/model.safetensors")model = timm.create_model("vit_base_patch14_reg4_dinov2.lvd142m", pretrained=False, num_classes=0, img_size=336)model.load_state_dict({k: v for k, v in weights.items() if not k.startswith("projection.")})6 unmodified linesSITNAM photographs, clippings from auction catalogues gathered by the American NumismaticSociety, carry no licence and are used under US fair use and the EU text and data miningexception. No photograph is included in this repository; each stays under its collection'sown terms. A rights holder who wants their photographs left out of future releases can ask athttps://github.com/Angoooose/solidi/issues.| Collection | Coins | Used on ||---|---|---|87 unmodified lines888990919293949596976 unmodified lines10410510610710810911011187 unmodified lines```pythonimport timmfrom huggingface_hub import snapshot_downloadfrom safetensors.torch import load_filefolder = snapshot_download("solidiorg/sema", revision="v1.0", allow_patterns="base/*")weights = load_file(f"{folder}/base/model.safetensors")model = timm.create_model("vit_base_patch14_reg4_dinov2.lvd142m", pretrained=False, num_classes=0, img_size=336)model.load_state_dict({k: v for k, v in weights.items() if not k.startswith("projection.")})6 unmodified linesSITNAM photographs, clippings from auction catalogues gathered by the American NumismaticSociety, carry no licence and are used under US fair use and the EU text and data miningexception. No photograph is included in this repository; each stays under its collection'sown terms. A rights holder who wants their photographs left out of future releases can emailcontact@solidi.org.| Collection | Coins | Used on ||---|---|---|
README.md+4-2