Zum Inhalt springen
ModelAufgelistetExtern
Herunterladen

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...

ArtOtherVersionRevision f566614CBewertung

Modellquelle

Art
Other
Dateigröße
94,0 MB
Version
vRevision f566614
Aktualisiert
17. Sept. 2026
Downloads
13
Quelle
Hugging Face

Quellenauszug

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...

Quellen

1 Quelle
Hugging FacePrimärVersion f5666142124643e0b76c0dfdafe69061e0191eae
huggingface.co/birder-project/resnet_v1_50_c1_sscd/tree/f5666142124643e0b76c0dfdafe69061e0191eae

Verifiziert 2. Sept.

Modellartefakte

1 Artefakt

resnet_v1_50_c1_sscd.pt

pt · 94,0 MB · SHA-256 974c71a7ee46…4502 · Hugging Face

Download file

Quellenauszüge

2 Auszüge

--- 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