Giter VIP home page Giter VIP logo

ursct-sesr's Introduction

URSCT-SESR: Reinforced Swin-Convs Transformer for Simultaneous Underwater Sensing Scene Image Enhancement and Super-resolution

Tingdi Ren, Haiyong Xu, Gangyi Jiang, Mei Yu, Xuan Zhang, Biao Wang, and Ting Luo.


arXiv GitHub Stars download visitors google colab logo

This repository is the official PyTorch implementation of URSCT-SESR: Reinforced Swin-Convs Transformer for Simultaneous Underwater Sensing Scene Image Enhancement and Super-resolution

Contents

  1. QucikStart
  2. Training
  3. Testing
  4. Download
  5. Citation

QuickStart

Attention: please ensure the pytorch version be same with requirements.txt

Start a custom training

We have put demo data in folder "./dataset", hence you can run any file "*_train.py" in folder "./scripts".

Start a test with pre-trained model

If you want to use the pre-trained model for realistic images or testing, please read the following content about data settings. After that, run any file "*_eval.py" in folder "./scripts".

Start a fine-tuning with pre-trained model

If you have downloaded the pre-trained model and intend to continue training/fine-tuning, please note:

  1. Since the code updating, the pre-trained weight data (a dict in python) uploaded before does not include any parameter about the optimizer. Hence, please reasonably set up the optimizer (e.g., a tiny learning rate).
  2. The default model loaded when resuming is "*_bestSSIM.pth" (at line 84/85 in the training code), please check the model file name.

Training

1. Put your dataset into your folder storing data (for example "./dataset/demo_data_Enh") as follows:

URSCT-SESR
├─ other files and folders
├─ dataset
│  ├─ demo_data_Enh
│  │  ├─ train_data
│  │  │  ├─ input
│  │  │  │  ├─ fig1.png
│  │  │  │  ├─ ...
│  │  │  ├─ target
│  │  │  │  ├─ fig1.png
│  │  │  │  ├─ ...
│  │  ├─ val_data
│  │  │  │  ├─ ...
│  │  ├─ test_data
│  │  │  │  ├─ ...

2. Configure the configs/*.yaml:

If you want to train with the default setting, *_DIR of TRAINING and TEST is the main option you need to edit.

(1) Enh&SR_opt.yaml for Simultaneous Underwater Sensing Scene Image Enhancement and Super-resolution

(2) Enh_opt.yaml for Underwater Sensing Scene Image Enhancement only

3. Run scripts/*_train.py

Testing

1. As reported above, put your dataset for testing and model we provided into the folders as follows:

URSCT-SESR
├─ other files and folders
├─ exps
│  ├─ quickstart_Enh (same as configurated above)
│  │  ├─ models
│  │     ├─ model_bestSSIM.pth (downloaded model)
├─ dataset
│  ├─ demo_data_Enh
│  │  ├─ train_data
│  │  ├─ val_data
│  │  ├─ test_data
│  │  │  ├─ input
│  │  │  │  ├─ fig1.png
│  │  │  │  ├─ ...
│  │  │  ├─ target
│  │  │  │  ├─ fig1.png
│  │  │  │  ├─ ...

2. Run scripts/*_eval.py

Download

Model

(1) GoogleDrive

(2) BaiduDisk (Password: SESR)

Dataset

(1) LSUI (UIE): Data Paper Homepage

(2) UIEB (UIE): Data Paper Homepage

(3) SQUID (UIE): Data Paper Homepage

(4) UFO (SESR): Data Paper Homepage

(5) USR (SR): Data Paper Homepage

Citation

@article{ren2022reinforced,
  title={Reinforced Swin-convs Transformer for Simultaneous Underwater Sensing Scene Image Enhancement and Super-resolution},
  author={Ren, Tingdi and Xu, Haiyong and Jiang, Gangyi and Yu, Mei and Zhang, Xuan and Wang, Biao and Luo, Ting},
  journal={IEEE Transactions on Geoscience and Remote Sensing},
  year={2022},
  publisher={IEEE}
}

ursct-sesr's People

Contributors

tingdiren avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.