OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Qformer

Qformer is an MIT-licensed Python research implementation of a vision transformer that uses learnable quadrangle attention to model image regions with varied shapes and orientations.

Independent OpenViST project profile, based on linked sources.

Qformer — Researchers examining attention windows that adapt into quadrilateral regions
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Set up the listed dependencies; NVIDIA Apex is optional for faster training.

  2. For training from scratch, run the documented single-GPU main.py command with the Qformer configuration and ImageNet data path.

  3. 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.
Evidence and transparency

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