Skip to content
ModelListedExternal
Download

Rope Vit Reg4 B14 Capi Imagenet21k

A RoPE ViT image classification model. The model follows a two-stage training process: first, CAPI pretraining, then fine-tuned on the ImageNet-21K dataset.

KindOtherBase modelbirder-project/rope_vit_reg4_b14_capiVersionRevision baf07b9

Model source

Kind
Other
File size
384 MB
Base model
birder-project/rope_vit_reg4_b14_capi
Version
vRevision baf07b9
Updated
Sep 16, 2026
Downloads
10
Source
Hugging Face

Source excerpt

A RoPE ViT image classification model. The model follows a two-stage training process: first, CAPI pretraining, then fine-tuned on the ImageNet-21K dataset.

Sources

1 source
Hugging FacePrimaryVersion baf07b9f2af6847c22fbb817cde0c54a2503e448
huggingface.co/birder-project/rope_vit_reg4_b14_capi-imagenet21k/tree/baf07b9f2af6847c22fbb817cde0c54a2503e448

Verified Sep 16

Model artifacts

1 artifact

rope_vit_reg4_b14_capi-imagenet21k.pt

pt · 384 MB · SHA-256 1325f35f0d8d…f56d · Hugging Face

Download

Source excerpts

2 excerpts

--- tags: - image-feature-extraction - birder - pytorch library_name: birder license: apache-2.0 base_model: - birder-project/rope_vit_reg4_b14_capi datasets: - timm/imagenet-w21-webp-wds --- # Model Card for rope_vit_reg4_b14_capi-imagenet21k A RoPE ViT image classification model. The model follows a two-stage training process: first, CAPI pretraining, then fine-tuned on the `ImageNet-21K` dataset. ## RoPE Configuration This model implements EVA-style Rotary Position Embedding (RoPE). When working with resolutions different from the training resolution (224x224), the model behavior can be optimized by configuring the `pt_grid_size` parameter: - For inference at higher resolutions or when performing "shallow" fine-tuning, it's recommended to explicitly set `pt_grid_size=(16, 16)` (the default grid size during pretraining). - For aggressive fine-tuning at higher resolutions, leave `pt_grid_size` as `None` to allow the model to adapt to the new resolution. Setting `pt_grid_size` during inference: ```sh # When running inference with a custom resolution (e.g., 336x336) python predict.py --network rope_vit_reg4_b14 -t capi-imagenet21k --model-config '{"pt_grid_size":[16, 16]}' --size 336 ... ``` Converting the model with explicit RoPE configuration: ```sh python tool.py convert-model --network rope_vit_reg4_b14 -t capi-imagenet21k --add-config '{"pt_grid_size":[16, 16]}' ``` ## Model Details - **Model Type:** Image classification and detection backbone - **Model Stats:** - Params (M): 100.5 - Input image size: 224 x 224 - **Dataset:** ImageNet-21K (19167 classes) - **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> - Vision Transformers Need Registers: <https://arxiv.org/abs/2309.16588> - Cluster and Predict Latent Patches for Improved Masked Image Modeling: <https://arxiv.org/abs/2502.08769> ## Model Usage ### Image Classification ```python import birder from birder.inference.classification import infer_image (net, model_info) = birder.load_pretrained_model("rope_vit_reg4_b14_capi-imagenet21k", 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.classificatio...

Source context: 10 downloads · 0 likes · Pipeline image-feature-extraction · Library birder · Repo birder-project/rope_vit_reg4_b14_capi-imagenet21k