ResNet-50 IN1k — Image Embeddings
ResNet-50 is a widely used convolutional network built with residual connections. This EIDORA package exposes a 2,048-dimensional image representation rather than class scores.
Recommended Use
ResNet-50 offers a familiar modern CNN baseline when exploring image collections. It is a good comparison for AlexNet’s older fully connected features or DINO’s transformer features, especially when you want to see whether broad visual groupings persist across encoders.
Limitations
- The original weights target ImageNet image classification, not specialised historical or cultural image categories.
- The representation summarizes an image and can overlook small but important details.
- Visual similarity should not be treated as verified object identity, chronology, or provenance.
Input
What you provide: an image file. EIDORA prepares RGB pixels before ONNX inference.
| ONNX input | Type | Shape | Prepared from |
|---|---|---|---|
pixel_values |
float32 |
[batch, 3, 224, 224] |
pixels |
Output
embedding is float32 with shape [batch, 2048]. The 2048-dimensional embedding is L2-normalized for cosine similarity. It is a feature vector, not ImageNet probabilities or a label.
Preprocessing
- Convert to RGB. Resize the shorter edge to 232 pixels, then take a center crop of 224 × 224. Interpolation: bilinear. Resize rounding:
truncate. - Scale RGB pixel values by 0.00392156862745, then normalize by mean
[0.485, 0.456, 0.406]and standard deviation[0.229, 0.224, 0.225]. - Pass
float32pixels inNCHWlayout. The preprocessing is performed by EIDORA, not by the ONNX graph.
Model Source and Architecture
ResNet-50 uses residual connections through a deep convolutional feature extractor. EIDORA takes the global-average-pooled features before the classification layer and L2-normalizes 2,048 values.
Training Data and Checkpoint Provenance
- Upstream checkpoint:
torchvision/resnet50-imagenet1k-v2. - Exact weights:
IMAGENET1K_V2.
The exact source is TorchVision ResNet50_Weights.IMAGENET1K_V2, trained for supervised ImageNet-1K classification. EIDORA packages these pretrained features without a newly trained classification head.
Research Context
Research paper: Deep Residual Learning for Image Recognition
He, Zhang, Ren and Sun introduced residual learning to make deeper visual networks easier to train. In an embedding workflow, the penultimate ResNet-50 features serve as a conventional supervised CNN reference.
Attribution and Licensing
The EIDORA configuration uses license: other. TorchVision source software is BSD-3-Clause, but the supplied checkpoint information does not establish a blanket pretrained-weight license. Check upstream and applicable data terms before reuse or redistribution.
References
- Research paper: Deep Residual Learning for Image Recognition
- Source checkpoint: torchvision/resnet50-imagenet1k-v2
- Pretrained weights: IMAGENET1K_V2
Suggested research citation (from the packaged configuration):
@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}
}
Package Information
- Repository:
EIDORA/ResNet50_IN1k - Package schema / version:
3/0.1.0 - Modality:
image - ONNX graph(s):
model.onnx - Configuration:
config.yaml - Declared ONNX Runtime providers:
CUDAExecutionProvider,CoreMLExecutionProvider,CPUExecutionProvider
Execution-provider availability depends on the user’s EIDORA installation, operating system and hardware. The declared providers are configuration options, not a guarantee of equal speed or identical hardware use. The config.yaml file defines the exact runtime input/output contract.
- Downloads last month
- 117