Downloads · 30 days
6
3% of all-time downloads
ashiq24/softeq-vit-base-patch16-224-voc-seg-c720-s0.90
softeq-vit-base-patch16-224-voc-seg-c720-s0.90 is a machine learning model from ashiq24. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Paper: Tunable Soft Equivariance with Guarantees Authors: Md Ashiqur Rahman, Lim Jun Hao, Jeremiah Jiang, Teck-Yian Lim, Raymond A. Yeh
Downloads · 30 days
6
3% of all-time downloads
All-time downloads
192
Public
Parameters
86.6M
346 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors346 MB · 100%
From the Hugging Face model README
Paper: Tunable Soft Equivariance with Guarantees
Authors: Md Ashiqur Rahman, Lim Jun Hao, Jeremiah Jiang, Teck-Yian Lim, Raymond A. Yeh
This repository hosts soft-equivariant vision models introduced in our paper. This repository contains a soft-equivariant VIT fine-tuned on PASCAL VOC. It uses a linear segmentation head.
Note: All models require
trust_remote_code=Truebecause they use custom model classes.
from transformers import AutoModel, AutoConfig
import torch
import torch.nn.functional as F
model_id = "ashiq24/softeq-vit-base-patch16-224-voc-seg-c720-s0.90"
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
model = AutoModel.from_pretrained(model_id, trust_remote_code=True)
model.eval()
# Input size must match model training resolution (e.g., 224×224)
pixel_values = torch.randn(1, 3, 224, 224)
with torch.no_grad():
outputs = model(pixel_values=pixel_values)
# outputs.logits shape: (1, num_labels, H, W) — already upsampled to input resolution
seg_map = outputs.logits.argmax(dim=1) # (1, H, W) predicted label per pixel
The SoftEqConfig class stores all architectural parameters. Key fields:
| Parameter | Type | Description |
|---|---|---|
n_rotations | int | Size of the discrete rotation group (e.g., 4 for C4, 720 for near-continuous) |
soft_thresholding | float | Softness of the patch-embedding filter in [0, 1]; 0 = strict equivariance, 1 = no filter |
soft_thresholding_pos | float | Softness of the positional-embedding filter in [0, 1] |
group_type | str | Symmetry group: "rotation" or "roto_reflection" |
hard_mask | bool | Use a hard (step-function) mask instead of exponential damping |
model_arch | str | Architecture variant (see table above) |
pretrained_model | str | HuggingFace identifier of the base backbone |
num_labels | int | Number of output classes |
If you use these models in your research, please cite:
@article{rahman2026tunable,
title={Tunable Soft Equivariance with Guarantees},
author={Rahman, Md Ashiqur and Hao, Lim Jun and Jiang, Jeremiah and Lim, Teck-Yian and Yeh, Raymond A},
journal={arXiv preprint arXiv:2603.26657},
year={2026}
}