Practical overview
When it fits
Use Qformer when you need research code for quadrangle-attention vision transformers and a documented ImageNet-1K classification training and evaluation path.
Who it is for
- Computer-vision researchers reproducing or extending hierarchical transformer classification experiments.
- Practitioners investigating quadrangle attention as a backbone or architecture for vision-task experiments.
Documented uses
- Train a hierarchical Qformer classification model on ImageNet-1K.
- Evaluate a classification checkpoint using the repository’s documented command.
- Study or adapt the architecture for detection, segmentation or pose research, accounting for the task-specific code releases listed as forthcoming.
Requirements & limits
The public repository lists an MIT license.
- Classification is the application with released hierarchical-model code identified in the README.
- The README documents single-GPU and distributed training and evaluation paths.
- The listed dependencies include conflicting timm versions in separate sections, which should be reconciled when preparing an environment.
- Apex is optional; the README associates it with faster training.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train or evaluate hierarchical Qformer on ImageNet-1K
Use the repository’s documented single-GPU command path for classification training or checkpoint evaluation.
Before you start
- Python environment with the listed PyTorch 1.7.1, torchvision 0.8.2, timm and other README dependencies.
- ImageNet-1K dataset and its local path.
- For evaluation, a Qformer model checkpoint.
Steps
Set up the listed dependencies; NVIDIA Apex is optional for faster training.
For training from scratch, run the documented single-GPU main.py command with the Qformer configuration and ImageNet data path.
For evaluation, run the documented single-GPU command with the same configuration and data path, plus the checkpoint path and --eval.
Expected outcome
The repository documents a single-GPU workflow for classification training or evaluation.
Guide limitations
- The README gives different timm versions in separate requirement sections: 0.3.2 and 0.4.9.
- The documented workflow is for classification; task-specific releases for object detection, segmentation and human pose are listed as forthcoming.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 28 November 2026
- Original website title
- ViTAE-Transformer/QFormer · Official homepage title · retained in its source language

