alt.freeweights.vision / hgnetv2_b4.ssld_stage2_ft_in1k
From: timm <huggingface.co/timm>Newsgroups: alt.freeweights.visionSubject:

hgnetv2_b4.ssld_stage2_ft_in1k

Date: 2026-11-15Commit: 3c808d9Signed: 2DC28CC7B26A283B ✓

Image classification model with 20M parameters. Safetensors weights, 159 MB in all. Published by timm under Apache-2.0.

20M params159MBhgnetv2_b4.ssld_stage2_ft_in1ksafetensorspermissive
FactsParams20MSize159 MBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get timm/hgnetv2_b4.ssld_stage2_ft_in1k
# manifest sha256 a18597fec78e… · 159 MB · 5 files
$ fw verify ./hgnetv2_b4.ssld_stage2_ft_in1k timm/hgnetv2_b4.ssld_stage2_ft_in1k
From sourceHosted (signed)timm/hgnetv2_b4.ssld_stage2_ft_in1kLast check: 2026-11-15 03:22 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
159 MB
Weights
79.4 MB (safetensors)
Parameters
20M
Formats
safetensors
Task
image classification
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
timm
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:22 UTCpassed

Model card

From the publisher at commit 3c808d9. Shown as plain text with links; images open at the publisher.

Model card for hgnetv2_b4.ssld_stage2_ft_in1k#

A HGNet-V2 (High Performance GPU Net) image classification model. Trained by model authors on mined ImageNet-22k and ImageNet-1k using SSLD distillation and further fine-tuned on ImageNet-1k.

Please see details at https://github.com/PaddlePaddle/PaddleClas/blob/develop/docs/zh_CN/models/ImageNet1k/PP-HGNetV2.md

Model Details#

  • Model Type: Image classification / feature backbone
  • Model Stats:
    • Params (M): 19.8
    • GMACs: 2.7
    • Activations (M): 6.7
    • Image size: train = 224 x 224, test = 288 x 288
  • Pretrain Dataset: ImageNet-22k
  • Dataset: ImageNet-1k
  • Papers:
  • Original: https://github.com/PaddlePaddle/PaddleClas

Model Usage#

Image Classification#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model('hgnetv2_b4.ssld_stage2_ft_in1k', pretrained=True)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)
Feature Map Extraction#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'hgnetv2_b4.ssld_stage2_ft_in1k',
    pretrained=True,
    features_only=True,
)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

for o in output:
    # print shape of each feature map in output
    # e.g.:
    #  torch.Size([1, 128, 56, 56])
    #  torch.Size([1, 512, 28, 28])
    #  torch.Size([1, 1024, 14, 14])
    #  torch.Size([1, 2048, 7, 7])

    print(o.shape)
Image Embeddings#
from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'hgnetv2_b4.ssld_stage2_ft_in1k',
    pretrained=True,
    num_classes=0,  # remove classifier nn.Linear
)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # output is (batch_size, num_features) shaped tensor

# or equivalently (without needing to set num_classes=0)

output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 2048, 7, 7) shaped tensor

output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor

Model Comparison#

By Top-1#
modeltop1top1_errtop5top5_errparam_countimg_size
hgnetv2_b6.ssld_stage2_ft_in1k86.3613.6497.9342.06675.26288
hgnetv2_b6.ssld_stage1_in22k_in1k86.29413.70697.9482.05275.26288
hgnetv2_b6.ssld_stage2_ft_in1k86.20413.79697.812.1975.26224
hgnetv2_b6.ssld_stage1_in22k_in1k86.02813.97297.8042.19675.26224
hgnet_base.ssld_in1k85.47414.52697.6322.36871.58288
hgnetv2_b5.ssld_stage2_ft_in1k85.14614.85497.6122.38839.57288
hgnetv2_b5.ssld_stage1_in22k_in1k84.92815.07297.5142.48639.57288
hgnet_base.ssld_in1k84.91215.08897.3422.65871.58224
hgnetv2_b5.ssld_stage2_ft_in1k84.80815.19297.32.739.57224
hgnetv2_b5.ssld_stage1_in22k_in1k84.45815.54297.222.7839.57224
hgnet_small.ssld_in1k84.37615.62497.1282.87224.36288
hgnetv2_b4.ssld_stage2_ft_in1k83.91216.08897.062.9419.8288
hgnet_small.ssld_in1k83.80816.19296.8483.15224.36224
hgnetv2_b4.ssld_stage2_ft_in1k83.69416.30696.7863.21419.8224
hgnetv2_b3.ssld_stage2_ft_in1k83.5816.4296.813.1916.29288
hgnetv2_b4.ssld_stage1_in22k_in1k83.4516.5596.923.0819.8288
hgnetv2_b3.ssld_stage1_in22k_in1k83.11616.88496.7123.28816.29288
hgnetv2_b3.ssld_stage2_ft_in1k82.91617.08496.3643.63616.29224
hgnetv2_b4.ssld_stage1_in22k_in1k82.89217.10896.6323.36819.8224
hgnetv2_b3.ssld_stage1_in22k_in1k82.58817.41296.383.6216.29224
hgnet_tiny.ssld_in1k82.52417.47696.5143.48614.74288
hgnetv2_b2.ssld_stage2_ft_in1k82.34617.65496.3943.60611.22288
hgnet_small.paddle_in1k82.22217.77896.223.7824.36288
hgnet_tiny.ssld_in1k81.93818.06296.1143.88614.74224
hgnetv2_b2.ssld_stage2_ft_in1k81.57818.42295.8964.10411.22224
hgnetv2_b2.ssld_stage1_in22k_in1k81.4618.5496.013.9911.22288
hgnet_small.paddle_in1k81.35818.64295.8324.16824.36224
hgnetv2_b2.ssld_stage1_in22k_in1k80.7519.2595.4984.50211.22224
hgnet_tiny.paddle_in1k80.6419.3695.544.4614.74288
hgnetv2_b1.ssld_stage2_ft_in1k79.90420.09695.1484.8526.34288
hgnet_tiny.paddle_in1k79.89420.10695.0524.94814.74224
hgnetv2_b1.ssld_stage1_in22k_in1k79.04820.95294.8825.1186.34288
hgnetv2_b1.ssld_stage2_ft_in1k78.87221.12894.4925.5086.34224
hgnetv2_b0.ssld_stage2_ft_in1k78.58621.41494.3885.6126.0288
hgnetv2_b1.ssld_stage1_in22k_in1k78.0521.9594.1825.8186.34224
hgnetv2_b0.ssld_stage1_in22k_in1k78.02621.97494.2425.7586.0288
hgnetv2_b0.ssld_stage2_ft_in1k77.34222.65893.7866.2146.0224
hgnetv2_b0.ssld_stage1_in22k_in1k76.84423.15693.6126.3886.0224

Citation#

@article{cui2021beyond,
  title={Beyond Self-Supervision: A Simple Yet Effective Network Distillation Alternative to Improve Backbones},
  author={Cui, Cheng and Guo, Ruoyu and Du, Yuning and He, Dongliang and Li, Fu and Wu, Zewu and Liu, Qiwen and Wen, Shilei and Huang, Jizhou and Hu, Xiaoguang and others},
  journal={arXiv preprint arXiv:2103.05959},
  year={2021}
}

Files

5 files · 159 MBWeights 79.4 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.60 KB53ae26303d70313b4e6a7499fd76642f34f165828f70dd88d7e5d1ad9e1d5d07
config.json676 B325048bef0a36b9480ebfdbfc16bf69973cca48a68b10c1e43c8e294126dfdd3
model.safetensors79.4 MB8d05f750c5301cd5c7d5139ae2417d13711da2c6ab067653579848bf31dcbeba
pytorch_model.bin79.6 MB6531327132c13e325d02772a1c33037caefd396dee6e2deb1397db9abd0d862e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
3c808d9d9d pinned now2026-11-15 03:22 UTC5 files · 159 MB

Use it

$ fw get timm/hgnetv2_b4.ssld_stage2_ft_in1k
# manifest sha256 a18597fec78e… · 159 MB · 5 files
$ fw verify ./hgnetv2_b4.ssld_stage2_ft_in1k timm/hgnetv2_b4.ssld_stage2_ft_in1k
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/timm/hgnetv2_b4.ssld_stage2_ft_in1k.json --dir ./hgnetv2_b4.ssld_stage2_ft_in1k $ python3 fw.py verify ./hgnetv2_b4.ssld_stage2_ft_in1k ./timm__hgnetv2_b4.ssld_stage2_ft_in1k.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download timm/hgnetv2_b4.ssld_stage2_ft_in1k --revision 3c808d9d9d9873ed5e37b00509ba2a4882e816e8 --local-dir ./hgnetv2_b4.ssld_stage2_ft_in1k

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
53ae26303d70313b4e6a7499fd76642f34f165828f70dd88d7e5d1ad9e1d5d07
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: timm <huggingface.co/timm>Newsgroups: alt.freeweights.visionSubject: hgnetv2_b4.ssld_stage2_ft_in1kDate: 2026-11-15Commit: 3c808d9Signed: 2DC28CC7B26A283B ✓
Upstream
timm/hgnetv2_b4.ssld_stage2_ft_in1k
Pinned commit
3c808d9d9d9873ed5e37b00509ba2a4882e816e8
Manifest
hgnetv2_b4.ssld_stage2_ft_in1k.json · .minisig
Manifest sha256
a18597fec78ed962a23fecf02886c12b1b238f3c348b8f679504aef7b7ea8511
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:22 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/timm/hgnetv2_b4.ssld_stage2_ft_in1k.json $ curl -O https://freeweights.allternit.com/manifests/timm/hgnetv2_b4.ssld_stage2_ft_in1k.json.minisig $ minisign -Vm hgnetv2_b4.ssld_stage2_ft_in1k.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download timm/hgnetv2_b4.ssld_stage2_ft_in1k
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. hgnetv2_b4.ssld_stage2_ft_in1k.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX