LibreSwint-cls
Swin Transformer V1 Tiny image classifier (224px input, ImageNet-1k, 1,000 classes), repackaged for LibreYOLO. 28,288,354 parameters.
Source
Derived from the Microsoft Research
Swin Transformer V1 release
at commit f82860bfb5225915aca09c3227159ee9e1df874d, with released weight
storage at SwinTransformer/storage
v1.0.0 (commit 3cc359915d3a6079b176a871f68d5fb0d8dfdea2).
Copyright (c) 2021 SwinTransformer. Licensed under the MIT License.
The exact source snapshot is
timm/swin_tiny_patch4_window7_224.ms_in1k
at revision 4cc3a7275b50b53a7bec45f32c236ebe64227cff. Its model.safetensors SHA-256 is
fb01861f793143135fa0d6cd97b1631e4b33eaa3ee162bbea9e62de1c76ebac1. Training lineage: ImageNet-1k.
The Apache-2.0 timm v1.0.28 implementation at commit
8ef73809f622e0031bd7f4940265734aef8b9978 is the architecture and parity
reference; it does not relicense the MIT weight release.
Modifications
Learned parameters are unchanged. The checkpoint is metadata-wrapped into
the LibreYOLO schema with canonical ImageNet-1k class names. LibreYOLO's native
Swin V1 implementation matches timm's parameter names and produces bit-exact
pretrained logits (max_abs_diff == 0). The converted checkpoint SHA-256 is
81844e9bbe8edba1d0e0c204341126d2ed77fd0905eb96aec1fad188c02c71fe.
See weights/convert_swin_weights.py in the
LibreYOLO source repository.
Usage
from libreyolo import LibreYOLO
model = LibreYOLO("LibreSwint-cls.pt")
result = model.predict("image.jpg")[0]
print(result.probs.top1, result.probs.top5)
License
MIT License. See the LICENSE and NOTICE files
in this repository.