|
Download README.md from lucid-dl/crossvit-18: direct link, hf CLI and curl.
- Browser
- Download file 1.79 kB
-
https://huggingface.co/lucid-dl/crossvit-18/resolve/main/README.md
- Command line
-
hf download hf://lucid-dl/crossvit-18/README.md
-
curl -L -o README.md https://huggingface.co/lucid-dl/crossvit-18/resolve/main/README.md
1.79 kB
metadata
library_name: lucid
license: apache-2.0
tags:
- image-classification
- crossvit
- lucid
datasets:
- imagenet-1k
pipeline_tag: image-classification
model-index:
- name: crossvit-18
results:
- task:
type: image-classification
dataset:
name: ImageNet-1k
type: imagenet-1k
metrics:
- type: acc@1
value: 82.5
CrossViT-18
Chen et al., 2021 — CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification (arXiv:2103.14899)
Lucid port of timm/crossvit_18_240.in1k,
converted to Lucid-native safetensors.
Available weights
| Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
|---|---|---|---|---|---|---|
IN1K (default) |
82.5 | — | 43.3M | — | 165.1 MB | timm |
Usage
import lucid.models as models
from lucid.models.weights import CrossViT18Weights
# default tag
model = models.crossvit_18_cls(pretrained=True)
# explicit tag (enum or string)
model = models.crossvit_18_cls(weights=CrossViT18Weights.IN1K)
model = models.crossvit_18_cls(pretrained="IN1K")
# preprocessing travels with the weights
weights = CrossViT18Weights.IN1K
preprocess = weights.transforms()
logits = model(preprocess(image)[None]).logits
Conversion
Converted from timm/crossvit_18_240.in1k via
python -m tools.convert_weights crossvit_18 --tag IN1K.
Key mapping + numerical parity verified against the source.
License
apache-2.0 — inherited from the original weights.
Citation
@inproceedings{chen2021crossvit,
title={CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification},
author={Chen, Chun-Fu (Richard) and Fan, Quanfu and Panda, Rameswar},
booktitle={ICCV}, year={2021}
}