ChanLumerico commited on
Commit
051b904
·
verified ·
1 Parent(s): 7bc3ff7

Update model card

Browse files
Files changed (1) hide show
  1. README.md +71 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: lucid
3
+ license: apache-2.0
4
+ tags:
5
+ - image-classification
6
+ - efficientformer
7
+ - lucid
8
+ datasets:
9
+ - imagenet-1k
10
+ pipeline_tag: image-classification
11
+ model-index:
12
+ - name: efficientformer-l7
13
+ results:
14
+ - task: { type: image-classification }
15
+ dataset: { name: ImageNet-1k, type: imagenet-1k }
16
+ metrics:
17
+ - { type: acc@1, value: 83.3 }
18
+ ---
19
+
20
+ # EfficientFormer-L7
21
+
22
+ > Li et al., 2022 — *EfficientFormer: Vision Transformers at MobileNet Speed* (arXiv:2206.01191)
23
+
24
+ [Lucid](https://github.com/ChanLumerico/lucid) port of `timm/efficientformer_l7.snap_dist_in1k`,
25
+ converted to Lucid-native safetensors.
26
+
27
+ ## Available weights
28
+
29
+ | Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
30
+ |---|---|---|---|---|---|---|
31
+ | `SNAP_DIST_IN1K` *(default)* | 83.3 | — | 82.2M | — | 314.09 MB | timm |
32
+
33
+ ## Usage
34
+
35
+ ```python
36
+ import lucid.models as models
37
+ from lucid.models.vision.resnet import EfficientformerL7Weights
38
+
39
+ # default tag
40
+ model = models.efficientformer_l7_cls(pretrained=True)
41
+
42
+ # explicit tag (enum or string)
43
+ model = models.efficientformer_l7_cls(weights=EfficientformerL7Weights.SNAP_DIST_IN1K)
44
+ model = models.efficientformer_l7_cls(pretrained="SNAP_DIST_IN1K")
45
+
46
+ # preprocessing travels with the weights
47
+ weights = EfficientformerL7Weights.SNAP_DIST_IN1K
48
+ preprocess = weights.transforms()
49
+ logits = model(preprocess(image)[None]).logits
50
+ ```
51
+
52
+ ## Conversion
53
+
54
+ Converted from `timm/efficientformer_l7.snap_dist_in1k` via
55
+ `python -m tools.convert_weights efficientformer_l7 --tag SNAP_DIST_IN1K`.
56
+ Key mapping + numerical parity verified against the source.
57
+
58
+ ## License
59
+
60
+ `apache-2.0` — inherited from the original weights.
61
+
62
+ ## Citation
63
+
64
+ ```
65
+ @article{li2022efficientformer,
66
+ title={EfficientFormer: Vision Transformers at MobileNet Speed},
67
+ author={Li, Yanyu and Yuan, Geng and Wen, Yang and Hu, Eric and Evangelidis, Georgios and Tulyakov, Sergey and Wang, Yanzhi and Ren, Jian},
68
+ journal={Advances in Neural Information Processing Systems},
69
+ volume={35}, year={2022}
70
+ }
71
+ ```