Views
No views yet
1import torch
2from huggingface_hub import hf_hub_download
3
4# Download model
5checkpoint_path = hf_hub_download(
6 repo_id="agileabhi/resnet50-imagenet1k",
7 filename="best_model.pth"
8)
9
10# Load checkpoint
11checkpoint = torch.load(checkpoint_path, map_location='cpu', weights_only=False)
12
13# Load model (you'll need to have the model definition)
14# from models import get_model
15# model = get_model('resnet50-pytorch', num_classes=1000)
16# model.load_state_dict(checkpoint['model_state_dict'])
17# model.eval()best_model.pth - Best performing model checkpointtraining_curves.png - Training/test accuracy and loss curveslr_finder_plot.png - Learning rate finder resultsmetrics.json - Complete training historyconfig.json - Hyperparameter configuration1@misc{resnet50-pytorch-imagenet-1k,
2 title = {IMAGENET-1K resnet50-pytorch},
3 year = {2025},
4 publisher = {HuggingFace},
5 url = {https://huggingface.co/agileabhi/resnet50-imagenet1k}
6}