qtransformer

quantum transformer

https://github.com/itachixc/qtransformer

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

quantum transformer

Basic Info
  • Host: GitHub
  • Owner: itachixc
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 79.4 MB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Contributing License Citation

README.md

Quantum Vision Transformer

Quantum vision transformer is a quantum-classical hybrid model that accelerates the vision transformer with quantum computing.

Installation

Qtransformer works on Linux, Windows and macOS. It requires Python 3.7+, CUDA 10.2+ and PyTorch 1.8+.

Step 1. Create a conda environment and activate it. bash conda create --name openmmlab python=3.8 -y conda activate openmmlab

Step 2. Install PyTorch following official instructions, e.g. On GPU platforms: bash conda install pytorch torchvision -c pytorch On CPU platforms: bash conda install pytorch torchvision cpuonly -c pytorch Step 3. Install qtransformer developed by mmpretrain bash git clone https://github.com/itachixc/qtransformer.git cd qtransformer pip install -U openmim && mim install -e .

Verify the installation

bash python demo/image_demo.py demo/demo.JPEG resnet18_8xb32_in1k --device cpu

Train

bash python tools/trains.py qtransformer_configs/vit_config_cifar10.py

Owner

  • Name: Xue Cheng
  • Login: itachixc
  • Kind: user
  • Company: USTC

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
Last Year
  • Issues event: 1
  • Watch event: 2

Dependencies

docker/Dockerfile docker
  • pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
docker/serve/Dockerfile docker
  • pytorch/torchserve latest-gpu build
projects/internimage_classification/ops_dcnv3/setup.py pypi
requirements/docs.txt pypi
  • docutils ==0.18.1
  • modelindex *
  • myst-parser *
  • pytorch_sphinx_theme *
  • sphinx ==6.1.3
  • sphinx-copybutton *
  • sphinx-notfound-page *
  • sphinx-tabs *
  • sphinxcontrib-jquery *
  • tabulate *
requirements/mminstall.txt pypi
  • mmcv >=2.0.0,<2.3.0
  • mmengine >=0.8.3,<1.0.0
requirements/multimodal.txt pypi
  • pycocotools *
  • transformers >=4.28.0
requirements/optional.txt pypi
  • albumentations >=0.3.2
  • grad-cam >=1.3.7
  • requests *
  • scikit-learn *
requirements/readthedocs.txt pypi
  • mmcv-lite >=2.0.0rc4
  • mmengine *
  • pycocotools *
  • torch *
  • torchvision *
  • transformers *
requirements/runtime.txt pypi
  • einops *
  • importlib-metadata *
  • mat4py *
  • matplotlib *
  • modelindex *
  • numpy *
  • rich *
requirements/tests.txt pypi
  • coverage * test
  • interrogate * test
  • pytest * test
requirements.txt pypi
setup.py pypi