Skip to content
/ QA-Net Public

Pytorch implementation of QA-Net, quality map associated attention network for multi-image super-resolution

Notifications You must be signed in to change notification settings

haewonc/QA-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QA-Net

General

In this repository, we provide a implementation of a quality map-associated attention network (QA-Net) for a multi-image super-resolution of a satellite images. The satellite images are often occluded by atmospheric disturbances such as clouds, and the position of the disturbances varies by the images. Many radiometric and geometric approaches are proposed to detect atmospheric disturbances. Still, the utilization of detection results, i.e., quality maps in deep learning was limited to pre-processing or computation of loss. So we present an architecture that fully incorporates QMs into a deep learning scheme for the first time.

Setting

  1. Clone this repository.
git clone https://github.com/haewonc/QA-Net.git
  1. Match the dependencies.
conda env create -f requirements.txt
  1. Download the pretrained model here and place it inside results/saved_models/.

Preprocessing

  1. Download cropped, splitted, and preprocessed dataset by TR-MISR. Google Drive
  2. Place the dataset outside the qa-net directory.
  3. Process the validation and test set to select 9 low-resolution images.
cd utils
python preprocess.py

Or you can just download our preprocessed dataset. Google Drive

Test on validation set

  1. Quantitative results
python valid.py
  1. Qualitative results (TBU)

Test on test set.

The ground-truth high-resolution images for test-set is not accessible. But you can generate submission file and submit it to the post-mortem leaderboard of the competition.

python predict.py

Train QA-Net model

  1. You can train QA-Net model with command below. The training with default configuration file should work on a machine with NVIDIA RTX 3080Ti (Memory: 12GB).
python train.py
  1. Check saved images during training in results/train_imgs and results/val_imgs.
  2. You can change the data directory, number of modules, batch size, and total number of epochs by editing the config.py.

About

Pytorch implementation of QA-Net, quality map associated attention network for multi-image super-resolution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages