Ir para o conteúdo
ModelListadosExterno
Baixar

Rope I Vit Reg1 S16 Pn Npn Avg C1 Pe Spatial

A ViT-S16 image encoder from the PE-Spatial model by Bolya et al., converted to the Birder format for image feature extraction. This version retains the original model weights and architecture, with the exception of...

TipoOtherModelo basefacebook/PE-Spatial-S16-512VersãoRevision b69df5dCnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
83,9 MB
Modelo base
facebook/PE-Spatial-S16-512
Versão
vRevision b69df5d
Atualizado
16 de set. de 2026
Downloads
4
Fonte
Hugging Face

Trecho da fonte

A ViT-S16 image encoder from the PE-Spatial model by Bolya et al., converted to the Birder format for image feature extraction. This version retains the original model weights and architecture, with the exception of...

Fontes

1 fonte
Hugging FacePrimárioVersão b69df5df5fa6e624b4c35d37c1b98d9dbb6f9e53
huggingface.co/birder-project/rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial/tree/b69df5df5fa6e624b4c35d37c1b98d9dbb6f9e53

Verificado 2 de set.

Artefatos de modelo

1 artefato

rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial.pt

pt · 83,9 MB · SHA-256 4e65e500f2a7…7fde · Hugging Face

Download file

Trechos de fonte

2 trechos

--- tags: - image-feature-extraction - birder - pytorch library_name: birder license: apache-2.0 base_model: - facebook/PE-Spatial-S16-512 --- # Model Card for rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial A ViT-S16 image encoder from the PE-Spatial model by Bolya et al., converted to the Birder format for image feature extraction. This version retains the original model weights and architecture, with the exception of treating the original CLS token as a REG token. It is a general-purpose visual backbone. See: <https://huggingface.co/facebook/PE-Spatial-S16-512> for further details. ## Model Details - **Model Type:** Image classification and detection backbone - **Model Stats:** - Params (M): 22.0 - Input image size: 512 x 512 - **Papers:** - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: <https://arxiv.org/abs/2010.11929> - Rotary Position Embedding for Vision Transformer: <https://arxiv.org/abs/2403.13298> - Perception Encoder: The best visual embeddings are not at the output of the network: <https://arxiv.org/abs/2504.13181> ## Model Usage ### Image Embeddings ```python import birder from birder.inference.classification import infer_image (net, model_info) = birder.load_pretrained_model("rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial", inference=True) # 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) image = "path/to/image.jpeg" # or a PIL image (out, embedding) = infer_image(net, image, transform, return_embedding=True) # embedding is a NumPy array with shape of (1, 384) ``` ### Detection Feature Map ```python from PIL import Image import birder (net, model_info) = birder.load_pretrained_model("rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial", inference=True) # 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) image = Image.open("path/to/image.jpeg") features = net.detection_features(transform(image).unsqueeze(0)) # features is a dict (stage name -> torch.Tensor) print([(k, v.size()) for k, v in features.items()]) # Output example: # [('neck', torch.Size([1, 384, 32, 32]))] ``` ## Citation `...

Source context: 4 downloads · 0 likes · Pipeline image-feature-extraction · Library birder · Repo birder-project/rope_i_vit_reg1_s16_pn_npn_avg_c1_pe-spatial