Views
No views yet
[1, 3, 224, 224] float32 tensor (RGB image)[1, 10] logits (10 classes)1import torch
2from huggingface_hub import hf_hub_download
3
4# Download and load
5model_path = hf_hub_download("Khauneesh/tiny-cnn-torchscript", "model.pt")
6model = torch.jit.load(model_path, map_location="cpu")
7model.eval()
8
9# Inference
10x = torch.randn(1, 3, 224, 224)
11with torch.no_grad():
12 logits = model(x)