PFT-SR

(β˜… 182)

CVPR2025-Progressive Focused Transformer for Single Image Super-Resolution

  • .gitignore
  • inference.py
  • inference_image.png
  • LICENSE.txt
  • README.md
  • requirements.txt
  • setup.py
  • VERSION
  • VisualAttention.py

# Installation Guide

1. Get the code
git clone https://github.com/CVL-UESTC/PFT-SR

Downloads the entire project code from GitHub to your computer.

cd PFT-SR

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -r requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --use-env --nproc_per_node=8 --master_port=1145 basicsr/train.py -opt options/train/001_PFT_SRx2_scratch.yml --launcher pytorch

Runs the Python script (or module).

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --use-env --nproc_per_node=8 --master_port=1145 basicsr/train.py -opt options/train/003_PFT_SRx4_finetune.yml --launcher pytorch

Runs the Python script (or module).

CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --use-env --nproc_per_node=4 --master_port=1145 basicsr/train.py -opt options/train/101_PFT_light_SRx2_scratch.yml --launcher pytorch

Runs the Python script (or module).

CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --use-env --nproc_per_node=4 --master_port=1145 basicsr/train.py -opt options/train/102_PFT_light_SRx3_finetune.yml --launcher pytorch

Runs the Python script (or module).

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation