Downloads · 30 days
10
5% of all-time downloads
Khauneesh/tiny-cnn-torchscript
tiny-cnn-torchscript is a image classification model from Khauneesh. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
Minimal CNN traced to TorchScript for pipeline validation and testing.
Downloads · 30 days
10
5% of all-time downloads
All-time downloads
221
Public
Repo size
102 KB
Likes
0
Public
Click a slice to open those files.
.pt33.9 KB · 93%
From the Hugging Face model README
Minimal CNN traced to TorchScript for pipeline validation and testing.
[1, 3, 224, 224] float32 tensor (RGB image)[1, 10] logits (10 classes)import torch
from huggingface_hub import hf_hub_download
# Download and load
model_path = hf_hub_download("Khauneesh/tiny-cnn-torchscript", "model.pt")
model = torch.jit.load(model_path, map_location="cpu")
model.eval()
# Inference
x = torch.randn(1, 3, 224, 224)
with torch.no_grad():
logits = model(x)
This model is designed for smoke testing TorchScript deployment pipelines.