Views
No views yet
1from huggingface_hub import snapshot_download
2import torch as tr
3
4repo = snapshot_download('AI417UPM/A4_4210036_Yasir')
5
6# Load DummyNet
7model = tr.hub.load(repo, 'DummyNet', source='local')
8model.eval()
9preds = model(tr.randn(10000, 784))
10
11# Load VanillaNet
12model = tr.hub.load(repo, 'VanillaNet', source='local')
13model.eval()
14preds = model(tr.randn(10000, 784))| File | Description |
|---|---|
dummy.py | DummyNet architecture |
vanilla.py | VanillaNet architecture |
dummy-weights.bin | Trained DummyNet weights |
vanilla-weights.bin | Trained VanillaNet weights |
hubconf.py | PyTorch Hub configuration |