Resnet v1 50 C1 Sscd
A ResNet v1 model designed to be used for image copy detection, converted to the Birder format for image feature extraction. This version retains the original model weights. The model produces 512-dimensional L2...
Source du modèle
- Type
- Other
- Taille du fichier
- 94,0 MB
- Version
- vRevision f566614
- Mis à jour
- 17 sept. 2026
- Téléchargements
- 13
- Source
- Hugging Face
Extrait de la source
A ResNet v1 model designed to be used for image copy detection, converted to the Birder format for image feature extraction. This version retains the original model weights. The model produces 512-dimensional L2...
Sources
1 source
Sources
1 sourceVérifié 2 sept.
Artefacts du modèle
1 artefact
Artefacts du modèle
1 artefactExtraits de sources
2 extraits
Extraits de sources
2 extraits--- tags: - image-feature-extraction - birder - pytorch library_name: birder license: mit --- # Model Card for resnet_v1_50_c1_sscd A ResNet v1 model designed to be used for image copy detection, converted to the Birder format for image feature extraction. This version retains the original model weights. The model produces 512-dimensional L2 normalized descriptors for each input image. The similarity between two images, represented by their descriptors a and b, can be effectively measured using descriptor cosine similarity `a.dot(b)`, where higher values indicate greater similarity. Alternatively, Euclidean distance `torch.linalg.vector_norm(a-b)` can be used, with lower values indicating greater similarity. For reference, descriptor cosine similarity greater than 0.75 indicates copies with 90% precision. For optimal performance, particularly when sample images from the target distribution are available, additional descriptor post-processing is recommended. This includes techniques such as centering (subtracting the mean) followed by L2 normalization, or whitening followed by L2 normalization, both of which can enhance accuracy. Furthermore, applying score normalization can lead to more consistent similarity measurements and improve global accuracy metrics, although it does not impact ranking metrics. For further information see: <https://github.com/facebookresearch/sscd-copy-detection> ## Model Details - **Model Type:** Image copy detection - **Model Stats:** - Params (M): 24.6 - Input image size: 320 x 320 - **Dataset:** DISC21: Dataset for the Image Similarity Challenge 2021 - **Papers:** - Deep Residual Learning for Image Recognition: <https://arxiv.org/abs/1512.03385> - A Self-Supervised Descriptor for Image Copy Detection: <https://arxiv.org/abs/2202.10261> ## Model Usage ### Image Copy Detection ```python import torch import torch.nn.functional as F from PIL import Image import birder from birder.inference.classification import infer_image from birder.net.ssl.sscd import SSCD (backbone, model_info) = birder.load_pretrained_model("resnet_v1_50_c1_sscd", inference=True) net = SSCD(backbone, config={}) # Get the image size the model was trained on size = birder.get_size_from_signature(model_info.signature) # Create an inference transform transform = birder.classification_transform(size, model_info.rgb_stats) image1 = Image.open("pa...
Source context: 13 downloads · 0 likes · Pipeline image-feature-extraction · Library birder · Repo birder-project/resnet_v1_50_c1_sscd
