Downloads · 30 days
11
13% of all-time downloads
isaaccorley/core-dino
core-dino is a machine learning model from isaaccorley. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for torchgeo. The card lists the license as cc-by-nc-3.0.
Rehosted and modified from https://huggingface.co/gajeshladhar/core-dino
Downloads · 30 days
11
13% of all-time downloads
All-time downloads
86
Public
Repo size
343 MB
Likes
0
Public
Click a slice to open those files.
.pt343 MB · 100%
From the Hugging Face model README
Rehosted and modified from https://huggingface.co/gajeshladhar/core-dino
Modified using the following code:
import os
import hashlib
import torch
import ultralytics
model = ultralytics.YOLO("yolo11x.yaml")
ckpt = "https://huggingface.co/gajeshladhar/core-dino/resolve/main/checkpoints/student.pt"
ckpt = torch.hub.load_state_dict_from_url(ckpt, map_location='cpu')
model.model.load_state_dict(
{k.replace('layers.', 'model.'): v for k, v in ckpt.items()},
strict=False)
model.ckpt = model.state_dict()
filename = "core_dino_rgb_yolo11x.pt"
model.save(filename)
md5 = hashlib.md5(open(filename, "rb").read()).hexdigest()[:8]
os.rename(filename, filename.replace(".pt", f"-{md5}.pt"))