Downloads · 30 days
22
19% of all-time downloads
zeromodels/vgg13_tv_in1k
vgg13_tv_in1k is a image classification model from zeromodels. Use it when you need a label for an image. It is set up for zeromodels. The card lists the license as bsd-3-clause.
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/classificationbackbones/) [](https://huggingface.co/collections/zeromodels/vgg-6a8eae72860856de692bdf93)
Downloads · 30 days
22
19% of all-time downloads
All-time downloads
117
Public
Repo size
532 MB
Likes
0
Public
Click a slice to open those files.
.h5532 MB · 100%
From the Hugging Face model README
Paper: Very Deep Convolutional Networks for Large-Scale Image Recognition (arXiv:1409.1556) · HF Papers
VGG is a classic deep CNN with stacked 3x3 convolutions. Available with and without BatchNorm as ImageNet classifiers / backbones.
For more details on the model, please go to the upstream model card.
Pure-Keras 3 conversion of timm/vgg13.tv_in1k for zeromodels. One implementation runs unmodified on TensorFlow / Torch / JAX.
This is an image-classification / backbone checkpoint (VGGImageClassify / VGGModel).
import os
os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
from PIL import Image
from zeromodels.models.vgg import VGGImageClassify, VGGModel, VGGImageProcessor
model = VGGImageClassify.from_weights("zeromodels/vgg13_tv_in1k")
processor = VGGImageProcessor.from_weights("zeromodels/vgg13_tv_in1k")
image = Image.open("your_image.jpg").convert("RGB")
pixels = processor(image) # resize + normalize (normalization lives in the processor)
logits = model(pixels, training=False)
print(logits.shape) # (1, num_classes)
# Feature extraction: the backbone without the classifier head
backbone = VGGModel.from_weights("zeromodels/vgg13_tv_in1k", as_backbone=True)
features = backbone(pixels, training=False)
Load any VGG variant the same way with from_weights("zeromodels/<variant>"):
| Variant | Hub |
|---|---|
vgg11_bn_tv_in1k | zeromodels/vgg11_bn_tv_in1k |
vgg11_tv_in1k | zeromodels/vgg11_tv_in1k |
vgg13_bn_tv_in1k | zeromodels/vgg13_bn_tv_in1k |
vgg13_tv_in1k | zeromodels/vgg13_tv_in1k |
vgg16_bn_tv_in1k | zeromodels/vgg16_bn_tv_in1k |
vgg16_tv_in1k | zeromodels/vgg16_tv_in1k |
vgg19_bn_tv_in1k | zeromodels/vgg19_bn_tv_in1k |
vgg19_tv_in1k | zeromodels/vgg19_tv_in1k |
KERAS_BACKEND before importing Keras / zeromodels.VGGImageClassify returns class logits; VGGModel returns features (as_backbone=True for multi-scale stages).VGGImageClassify.from_weights("hf:timm/vgg13.tv_in1k").A huge thank you to the VGG authors and the timm / Hub communities for creating and releasing these models.
License: see YAML license (usually matches the upstream checkpoint).