ChanLumerico commited on
Commit
6f22e81
·
verified ·
1 Parent(s): 1412b50

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
+ - efficientnet
7
+ - lucid
8
+ datasets:
9
+ - imagenet-1k
10
+ pipeline_tag: image-classification
11
+ model-index:
12
+ - name: efficientnet-b1
13
+ results:
14
+ - task: { type: image-classification }
15
+ dataset: { name: ImageNet-1K, type: imagenet-1k }
16
+ metrics:
17
+ - { type: acc@1, value: 78.642 }
18
+ - { type: acc@5, value: 94.186 }
19
+ ---
20
+
21
+ # EfficientNet-B1
22
+
23
+ > Tan & Le, 2019 — *EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks* (arXiv:1905.11946)
24
+
25
+ [Lucid](https://github.com/ChanLumerico/lucid) port of `torchvision/EfficientNet_B1_Weights.IMAGENET1K_V1`,
26
+ converted to Lucid-native safetensors.
27
+
28
+ ## Available weights
29
+
30
+ | Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
31
+ |---|---|---|---|---|---|---|
32
+ | `IMAGENET1K_V1` *(default)* | 78.642 | 94.186 | 7.8M | 0.687 | 30.02 MB | torchvision |
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ import lucid.models as models
38
+ from lucid.models.vision.resnet import EfficientnetB1Weights
39
+
40
+ # default tag
41
+ model = models.efficientnet_b1_cls(pretrained=True)
42
+
43
+ # explicit tag (enum or string)
44
+ model = models.efficientnet_b1_cls(weights=EfficientnetB1Weights.IMAGENET1K_V1)
45
+ model = models.efficientnet_b1_cls(pretrained="IMAGENET1K_V1")
46
+
47
+ # preprocessing travels with the weights
48
+ weights = EfficientnetB1Weights.IMAGENET1K_V1
49
+ preprocess = weights.transforms()
50
+ logits = model(preprocess(image)[None]).logits
51
+ ```
52
+
53
+ ## Conversion
54
+
55
+ Converted from `torchvision/EfficientNet_B1_Weights.IMAGENET1K_V1` via
56
+ `python -m tools.convert_weights efficientnet_b1 --tag IMAGENET1K_V1`.
57
+ Key mapping + numerical parity verified against the source.
58
+
59
+ ## License
60
+
61
+ `apache-2.0` — inherited from the original weights.
62
+
63
+ ## Citation
64
+
65
+ ```
66
+ @inproceedings{tan2019efficientnet,
67
+ title={EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks},
68
+ author={Tan, Mingxing and Le, Quoc},
69
+ booktitle={ICML}, year={2019}
70
+ }
71
+ ```