LibreSwins-cls

Swin Transformer V1 Small image classifier (224px input, ImageNet-1k, 1,000 classes), repackaged for LibreYOLO. 49,606,258 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_small_patch4_window7_224.ms_in1k at revision b59828b00f6fac85d99c8eac48094b605b6e7ec3. Its model.safetensors SHA-256 is 8fa31b116680e02e4ad6ad06eb29a1b9ca56bd93a2e88510a0bc7e82e0e2024f. 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 6eaf6826fb084a708d7ecb10620d6689d6c568901dd93646752dcf3fd8bcca19.

See weights/convert_swin_weights.py in the LibreYOLO source repository.

Usage

from libreyolo import LibreYOLO

model = LibreYOLO("LibreSwins-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.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train LibreYOLO/LibreSwins-cls

Collection including LibreYOLO/LibreSwins-cls