ResNet-34

He et al., 2015 — Deep Residual Learning for Image Recognition (arXiv:1512.03385)

Lucid port of torchvision/ResNet34_Weights.IMAGENET1K_V1, converted to Lucid-native safetensors.

Available weights

Tag acc@1 acc@5 Params GFLOPs Size Source
IMAGENET1K_V1 (default) 73.314 91.42 21.8M 3.664 83.24 MB torchvision

Usage

import lucid.models as models
from lucid.models.weights import ResNet34Weights

# default tag
model = models.resnet_34_cls(pretrained=True)

# explicit tag (enum or string)
model = models.resnet_34_cls(weights=ResNet34Weights.IMAGENET1K_V1)
model = models.resnet_34_cls(pretrained="IMAGENET1K_V1")

# preprocessing travels with the weights
weights = ResNet34Weights.IMAGENET1K_V1
preprocess = weights.transforms()
logits = model(preprocess(image)[None]).logits

Conversion

Converted from torchvision/ResNet34_Weights.IMAGENET1K_V1 via python -m tools.convert_weights resnet_34 --tag IMAGENET1K_V1. Key mapping + numerical parity verified against the source.

License

bsd-3-clause — inherited from the original weights.

Citation

@inproceedings{he2016deep,
  title={Deep Residual Learning for Image Recognition},
  author={He, Kaiming and Zhang, Xiangyu and Ren, Shaoqing and Sun, Jian},
  booktitle={CVPR}, year={2016}
}
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 lucid-dl/resnet-34

Paper for lucid-dl/resnet-34

Evaluation results