Sponsored by
Designkit Free Background Remover
-Designkit offers free AI background removal for up to 100 images daily, with batch processing, custom backgrounds, and resizing.
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
.
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.
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):
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
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 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:
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.