Code Monkey home page Code Monkey logo

uiir's Introduction

Linking Physics-based Imaging to Data-driven Learning for Underwater Image Clearness

We implement our method with PyTorch on a GEFORCE RTX 3090 GPU.

Prerequisites

  • Linux
  • Python 3
  • CPU or NVIDIA GPU + CUDA CuDNN

Datasets

UIC under Ideal Supervision

  • Experiments on UIEB dataset
# Train
CUDA_VISIBLE_DEVICES=0 python train.py  --model Ideal --name Ideal_uieb --dataset_root uieb_dataset_url --dataset_mode uieb --batch_size 8
# Test
CUDA_VISIBLE_DEVICES=0 python test.py --model Ideal --name Ideal_uieb --dataset_root uieb_dataset_url --dataset_mode uieb --batch_size 1
# Metrics: MSE, PSNR, SSIM
CUDA_VISIBLE_DEVICES=0 python metrics/evaluations-enhancement.py --results_root results/Ideal_uieb/test_latest/images/ --dataname uieb
  • Experiments on EUVP dataset
# Train
CUDA_VISIBLE_DEVICES=0 python train.py  --model Ideal --name Ideal_euvp --dataset_root euvp_paired_dataset_url --dataset_mode euvp --batch_size 8
# Test
CUDA_VISIBLE_DEVICES=0 python test.py --model Ideal --name Ideal_euvp --dataset_root euvp_paired_dataset_url --dataset_mode euvp --batch_size 1
# Metrics: MSE, PSNR, SSIM
CUDA_VISIBLE_DEVICES=0 python metrics/evaluations-enhancement.py --results_root results/Ideal_euvp/test_latest/images/ --dataname euvp

UIC under Non-ideal In-water Supervision

# Train
CUDA_VISIBLE_DEVICES=0 python train.py --model NonIdealGAN --name NonIdealGAN_euvp --dataset_root euvp_unpaired_dataset_url --unaligned_dataset euvp --batch_size 8
# Test
CUDA_VISIBLE_DEVICES=0 python test.py --model NonIdealGAN --name NonIdealGAN_euvp --dataset_root euvp_paired_dataset_url --dataset_mode euvp --batch_size 1
# Metrics: MSE, PSNR, SSIM
CUDA_VISIBLE_DEVICES=0 python metrics/evaluations-enhancement.py --results_root results/NonIdealGAN_euvp/test_latest/images/ --dataname euvp
# Metrics: UIQM
python metrics/uiqm_metrics.py  --results_root  results/NonIdealGAN_euvp/test_latest/images/

UIC under Non-ideal In-air Supervision

# Train
CUDA_VISIBLE_DEVICES=0 python train.py --model NonIdealRAS --name NonIdealRAS_In-air --dataset_root euvp_unpaired_dataset_url  --unaligned_dataset adobe5k --batch_size 8
# Test
CUDA_VISIBLE_DEVICES=0 python test.py --model NonIdealRAS --name NonIdealRAS_In-air --dataset_root euvp_paired_dataset_url --dataset_mode euvp --batch_size 1
# Metrics: UIQM
python metrics/uiqm_metrics.py  --results_root  results/NonIdealRAS_In-air/test_latest/images/

Apply a pre-trained model

  • Download pre-trained models from Google Drive or BaiduCloud (access code: 70i0), and put pre-trained/* in the directory checkpoints/. Run test command to obtain the results.

Acknowledgement

For some of the data modules and model functions used in this source code, we need to acknowledge the repositories of CycleGAN and IntrinsicHarmony.

uiir's People

Contributors

guozonghui avatar aceg1234 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.