Views
No views yet
Huang et al., 2017 — Densely Connected Convolutional Networks (arXiv:1608.06993)
torchvision/DenseNet121_Weights.IMAGENET1K_V1,
converted to Lucid-native safetensors.| Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
|---|---|---|---|---|---|---|
IMAGENET1K_V1 (default) | 74.434 | 91.972 | 8.0M | 2.834 | 30.84 MB | torchvision |
1import lucid.models as models
2from lucid.models.weights import DenseNet121Weights
3
4# default tag
5model = models.densenet_121_cls(pretrained=True)
6
7# explicit tag (enum or string)
8model = models.densenet_121_cls(weights=DenseNet121Weights.IMAGENET1K_V1)
9model = models.densenet_121_cls(pretrained="IMAGENET1K_V1")
10
11# preprocessing travels with the weights
12weights = DenseNet121Weights.IMAGENET1K_V1
13preprocess = weights.transforms()
14logits = model(preprocess(image)[None]).logitstorchvision/DenseNet121_Weights.IMAGENET1K_V1 via
python -m tools.convert_weights densenet_121 --tag IMAGENET1K_V1.
Key mapping + numerical parity verified against the source.bsd-3-clause — inherited from the original weights.@inproceedings{huang2017densely,
title={Densely Connected Convolutional Networks},
author={Huang, Gao and Liu, Zhuang and Van Der Maaten, Laurens and Weinberger, Kilian Q.},
booktitle={CVPR}, year={2017}
}