Views
No views yet
hubconf.py allows loading the models using torch.hub.1from huggingface_hub import snapshot_download
2import torch as tr
3
4repo = snapshot_download("AI417UPM/A4_4311914_Jana")
5
6model = tr.hub.load(repo, "DummyNet", source="local")
7model.eval()
8print("Dummy loaded successfully")
9
10model = tr.hub.load(repo, "VanillaNet", source="local")
11model.eval()
12print("Vanilla loaded successfully")