Giter Club home page Giter Club logo

lanet's Introduction

LANet

Our work proposes an “Adaptive learning attention network for underwater image enhancement” (LANet) to solve the problem of color casts and low illumination in underwater images.

Dependencies

The code runs with Python=3.6 and requires Pytorch of version 1.7 or higher. Please pip install the following packages:

  • numpy=1.20.2
  • torchvision=0.8.0
  • matplotlib=3.4.2
  • opencv-python=4.5.2.54
  • scipy=1.7.0

Training

1. Download the code
2. run Python train.py --input_images-path ./data/trainA/ --label_images_path ./data/trainB/ 
3. Find checkpoint in the "./checkpoints/" folder
The training data includes input data and label data. input data are in the "./data/trainA" folder, label data are in the "./data/trainB" folder

Testing

1. pre-trained models in the "./checkpoints/" folder
2. Put your testing images in the "./data/test/" folder 
3. run Python test.py --test_pth ./data/test/ --snapshot_pth ./checkpoints/model_epoch_40.pk
4. Find the result in "./results" folder

Citation

@article{liu2022adaptive,
  title={Adaptive learning attention network for underwater image enhancement},
  author={Liu, Shiben and Fan, Huijie and Lin, Sen and Wang, Qiang and Ding, Naida and Tang, Yandong},
  journal={IEEE Robotics and Automation Letters},
  volume={7},
  number={2},
  pages={5326--5333},
  year={2022},
  publisher={IEEE}
}

Contact

If you have any questions, please contact Shiben Liu at [email protected].

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.