BiliSakura / AnyUp-transformers

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 17 2026
image-feature-extraction

Introduction of AnyUp-transformers

Model Details of AnyUp-transformers

AnyUp Transformers Models

Self-contained Hugging Face checkpoints converted from the official AnyUp weights ( anyup_paper.pth , anyup_multi_backbone.pth ).

Each subfolder is a standalone Transformers repo ( config.json , model.safetensors , image processor, pipeline, remote code) and loads with trust_remote_code=True .

Original paper: AnyUp: Universal Feature Upsampling (ICLR 2026 Oral)
Original code: wimmerth/anyup
Converted for Hugging Face by: BiliSakura
License (weights / original code): CC BY 4.0

What AnyUp does

AnyUp upsamples features from any vision encoder (DINO, CLIP, SAM, ResNet, …) to a higher spatial resolution, guided by a high-resolution RGB image. It is not encoder-specific: the same weights work at arbitrary feature channel counts and resolutions.

Inputs:

  1. a high-resolution RGB guide (ImageNet mean/std)
  2. a low-resolution feature map (B, C, h, w)

Output: upsampled features (B, C, H, W) .

Checkpoints
Folder Training features Source
anyup DINOv2 ViT-S/14 (paper) anyup_paper.pth
anyup-multi-backbone DINOv2 (S), DINOv2-R (S), CLIP (B), SigLIP (B), ViT-B anyup_multi_backbone.pth

Released weights use windowed multi-head cross-attention. After loading, call model.enable_natten() or AnyUpModel.from_pretrained(..., use_natten=True) to swap in the optional NATTEN kernel (copies Q/K from the MHA checkpoint; windows differ slightly from the paper).

Usage
from transformers import pipeline
from PIL import Image
import torch

MODEL = "/path/to/AnyUp-transformers/anyup-multi-backbone"

pipe = pipeline(
    task="image-feature-extraction",
    model=MODEL,
    trust_remote_code=True,
)

image = Image.open("guide.png").convert("RGB")
lr_features = torch.randn(1024, 16, 16)  # any encoder, any C
hr_features = pipe(image, features=lr_features, return_tensors=True)
print(hr_features.shape)  # (1, 1024, H, W)  — H,W match the guide

Custom output size (for example patch-14 of a 2016 px tile → 144×144):

hr_features = pipe(
    image,
    features=lr_features,
    output_size=(144, 144),
    q_chunk_size=10,
    return_tensors=True,
)

The task is also inferred if you omit it (this repo registers a single custom pipeline):

pipe = pipeline(model=MODEL, trust_remote_code=True)

Load components directly:

from transformers import AutoImageProcessor, AutoModel

processor = AutoImageProcessor.from_pretrained(MODEL, trust_remote_code=True)
model = AutoModel.from_pretrained(MODEL, trust_remote_code=True)

inputs = processor(images=image, return_tensors="pt")
outputs = model(
    pixel_values=inputs["pixel_values"],
    features=lr_features.unsqueeze(0),  # (B, C, h, w)
    output_size=(144, 144),
)
upsampled = outputs.last_hidden_state  # (B, C, 144, 144)

Already ImageNet-normalized tensors can skip the processor and go straight to the model or pipeline:

guide = torch.randn(1, 3, 224, 224)          # ImageNet-normalized
feats = torch.randn(1, 1024, 16, 16)
upsampled = pipe(guide, features=feats, return_tensors=True)
Preprocessing

preprocessor_config.json matches the official inference recipe:

Input Transform
RGB guide /255 , ImageNet mean/std [0.485, 0.456, 0.406] / [0.229, 0.224, 0.225]
Resize off by default ( do_resize: false ) so native (H, W) is preserved
Features passed through unchanged
Notes
  • Checkpoint keys are kept identical to the official nn.Module tree ( image_encoder.* , cross_decode.* , rope.freqs , …), so conversion is a strict load_state_dict .
  • q_chunk_size trades speed for memory. For MHA it is query tokens; for NATTEN it is low-res rows , not query tokens.
  • NATTEN is optional and not stored in model.safetensors . Enabling it requires a NATTEN build matching your CUDA / PyTorch versions.
Citation
@inproceedings{wimmer2026anyup,
    title={AnyUp: Universal Feature Upsampling},
    author={Wimmer, Thomas and Truong, Prune and Rakotosaona, Marie-Julie and Oechsle, Michael and Tombari, Federico and Schiele, Bernt and Lenssen, Jan Eric},
    booktitle={Proceedings of the International Conference on Learning Representations ({ICLR})},
    year={2026}
}

Runs of BiliSakura AnyUp-transformers on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About AnyUp-transformers huggingface.co Model

More AnyUp-transformers license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

AnyUp-transformers huggingface.co

AnyUp-transformers huggingface.co is an AI model on huggingface.co that provides AnyUp-transformers's model effect (), which can be used instantly with this BiliSakura AnyUp-transformers model. huggingface.co supports a free trial of the AnyUp-transformers model, and also provides paid use of the AnyUp-transformers. Support call AnyUp-transformers model through api, including Node.js, Python, http.

AnyUp-transformers huggingface.co Url

https://huggingface.co/BiliSakura/AnyUp-transformers

BiliSakura AnyUp-transformers online free

AnyUp-transformers huggingface.co is an online trial and call api platform, which integrates AnyUp-transformers's modeling effects, including api services, and provides a free online trial of AnyUp-transformers, you can try AnyUp-transformers online for free by clicking the link below.

BiliSakura AnyUp-transformers online free url in huggingface.co:

https://huggingface.co/BiliSakura/AnyUp-transformers

AnyUp-transformers install

AnyUp-transformers is an open source model from GitHub that offers a free installation service, and any user can find AnyUp-transformers on GitHub to install. At the same time, huggingface.co provides the effect of AnyUp-transformers install, users can directly use AnyUp-transformers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AnyUp-transformers install url in huggingface.co:

https://huggingface.co/BiliSakura/AnyUp-transformers

Url of AnyUp-transformers

AnyUp-transformers huggingface.co Url

Provider of AnyUp-transformers huggingface.co

BiliSakura
ORGANIZATIONS

Other API from BiliSakura

huggingface.co

Total runs: 87
Run Growth: 34
Growth Rate: 40.00%
Updated:February 16 2026
huggingface.co

Total runs: 23
Run Growth: -15
Growth Rate: -65.22%
Updated:February 16 2026
huggingface.co

Total runs: 16
Run Growth: 4
Growth Rate: 25.00%
Updated:March 09 2026
huggingface.co

Total runs: 7
Run Growth: -18
Growth Rate: -225.00%
Updated:March 09 2026
huggingface.co

Total runs: 6
Run Growth: 1
Growth Rate: 16.67%
Updated:March 09 2026
huggingface.co

Total runs: 3
Run Growth: -7
Growth Rate: -233.33%
Updated:March 09 2026