Skip to content

toponets/toponets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toponets

A simple interface to load checkpoints from the TopoNets Paper (ICLR 2025). We closely followed the standard training procedures for these models. The only difference being the addition of topoloss to the original loss.

All of the checkpoints are hosted on the MurtyLab HuggingFace 🤗

Start by installing this repo as a module:

pip install git+https://github.com/toponets/toponets.git

Then load the pre-trained checkpoints like this:

import toponets

topo_resnet18 = toponets.resnet18(tau=10.0, checkpoint_path = f"resnet18_tau_{tau}.pt")
topo_resnet50 = toponets.resnet50(tau=30.0, checkpoint_path = f"resnet50_tau_{tau}.pt")
topo_vit_b_32 = toponets.vit_b_32(tau=10.0, checkpoint_path = f"vit_b_32_tau_{tau}.pt")
topo_nanogpt = toponets.nanogpt(tau=50.0, checkpoint_path = f"nanogpt_tau_{tau}.pt")

Check out example.py for more examples.

About

pre-trained topographic models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages