Benchmark-QuantizedHSIC checkpoints

Full-precision checkpoints for the paper "Benchmarking Post-Training Quantization for Transformer and Mamba Hyperspectral Classifiers", at the Computer Vision for Earth Observation (CV4EO) workshop at WACV 2027. Code: github.com/itsPronay/Benchmark-QuantizedHSIC.

The paper quantizes these checkpoints after training with Half-Quadratic Quantization (HQQ) and optimum-quanto (Quanto). No quantized weights are stored: every quantized result is rebuilt from a checkpoint here by tools/eval.py in the code repository.

Contents

1,230 PyTorch checkpoints, 1.1 GB in all, of five models trained on six scenes with five seeds (0–4). The models are SpectralFormer (sf), SpectralFormer-CT (sfct), MViT (mvit), MassFormer (mf) and Spectral-Spatial Mamba (ssm). The scenes are Indian Pines (Indian), Pavia University (Pavia), Houston 2013 (Houston), and the CRISM Mars scenes Utopia Planitia (UP), Nili Fossae (NF) and Holden Crater (HC).

Serial Family Checkpoints
60000 main grid: 5 models Γ— 6 scenes Γ— 5 seeds, 20 labels per class 150
60101–60104 label budgets of 5, 10, 20, 40 labels per class: 5 models Γ— 6 scenes Γ— 5 seeds each 600
60201–60203 embedding widths 16, 32, 64 for SpectralFormer, SpectralFormer-CT, MassFormer, MViT: 6 scenes Γ— 5 seeds each 360
60301–60304 SS-Mamba spatial tiles 15, 5, 3, 1 (1, 9, 25, 225 tokens): 6 scenes Γ— 5 seeds each 120
total 1,230

The serial register in the code repository, docs/SERIALS.md, lists the evaluation runs that load each family.

Layout

results/<dataset>_<model>_<serial>_seed<s>/ckpt.pt

for example results/Indian_mvit_60000_seed0/ckpt.pt. Each file is a dictionary with state_dict, the weights of the checkpoint with the best validation accuracy, and config, the training arguments as an argparse.Namespace, with the W&B entity and project the run was launched under. config may record an earlier serial and, for SpectralFormer-CT, the model key sf; the directory name gives the serial in the code repository's docs/SERIALS.md and the model key. Every evaluation records the SHA-1 of the checkpoint it read, in ckpt_sha1 of the code repository's run CSV.

Use

From the root of a clone of the code repository, with its environment installed:

hf download ERISLab/Benchmark-QuantizedHSIC --local-dir .

# one evaluation: MViT on Indian Pines, seed 0, HQQ at 4 bits and group size 64
python -m tools.eval --model mvit --dataset Indian --seed 0 --cfg configs/quant/hqq_b4_g64.yaml \
                     --train_serial 60000 --serial 60010 --wandb_mode disabled

# the effective-rank probes of the paper (GPU)
bash analysis/probes.sh

The launchers in script/ evaluate whole families and skip training when a checkpoint is present. To load a checkpoint directly:

import torch
ckpt = torch.load('results/Indian_mvit_60000_seed0/ckpt.pt', weights_only=False)
ckpt['state_dict'], ckpt['config']

weights_only=False is needed because config is a Namespace. The models are built by qhsic.model_utils.build_model.build_model from the training arguments.

License

Apache-2.0, the license of the code repository and of the HQQ library it vendors.

Citation

@InProceedings{Sarker_2027_WACV,
    author    = {Sarker, Pronay and Rios, Edwin Arkel and Lai, Bo-Cheng and Hu, Min-Chun},
    title     = {Benchmarking Post-Training Quantization for Transformer and Mamba Hyperspectral Classifiers},
    booktitle = {Proceedings of the Winter Conference on Applications of Computer Vision (WACV) Workshops},
    year      = {2027}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support