Downloads · 30 days
0
isaaccorley/galileo
galileo 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. The card lists the license as mit.
Rehosted from https://huggingface.co/nasaharvest/galileo using the following code:
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
382 MB
Likes
0
Public
Click a slice to open those files.
.pth373 MB · 100%
From the Hugging Face model README
Rehosted from https://huggingface.co/nasaharvest/galileo using the following code:
import os
import hashlib
import torch
urls = dict(
nano='https://hf.co/nasaharvest/galileo/resolve/main/models/nano/encoder.pt',
tiny='https://hf.co/nasaharvest/galileo/resolve/main/models/tiny/encoder.pt',
base='https://hf.co/nasaharvest/galileo/resolve/main/models/base/encoder.pt',
)
for name, url in urls.items():
state_dict = torch.hub.load_state_dict_from_url(url, map_location="cpu", file_name=f'model_{name}.pth')
state_dict = {k.replace('.backbone', ''): v for k, v in state_dict.items()}
filename = f'model_{name}.pth'
torch.save(state_dict, filename)
md5 = hashlib.md5(open(filename, "rb").read()).hexdigest()[:8]
os.rename(filename, filename.replace(".pth", f"-{md5}.pth"))