Giter Club home page Giter Club logo

uwcnn's Introduction

An Incremental improvement to underwater scene prior inspired deep underwater image and video enhancement: UWCNN++

By: Max Midwinter

Date: 2021-04-21

This work is based on:

Underwater scene prior inspired deep underwater image and video enhancement DOI: https://doi.org/10.10.16/j.patcog.2019.107038

Please see the attached PDF for details about UWCNN++

Using the Code

In the UWCNN++ directory is a sample of how the project is structured.

  • NYU_GT is a stand in for the NYUv2 RGBD dataset
  • NYU_UW_GT is the output for cropped NYU_GT images by using resizeNYUGT in preprocess.py
  • NYU_UW_type1 is the output folder for generated synthetic images (you'll need to create this folder prior to running generate_image_underwater_v3.py)
  • results is the directory that UWCNN will save the images you run with model_test
  • save_model is where the trained CNN model will be saved
  • test_images is a directory where we store real underwater images we want to test
  • train_type1 is the directory where train_model will save checkpoints (please also create this directory prior to training)

UWCNN++ also contains 4 main scripts that will generally used in the following order

  • generate_image_underwater_v3.py that generates the underwater images (lines: 33, 48) need to be changed manually to generate different turbidity levels
  • preprocess.py the main function of this function is to generate the csv files that UWCNN will use to create the database object for training
  • UWCNN.py is the network and contains the training and testing code
  • hsi_normalize.py is used to enrich the colour of the network, this will read all the images in results directory and will overwrite them

Results

See pdf

uwcnn's People

Contributors

juan-park avatar macillas avatar

Stargazers

 avatar  avatar Wang avatar Fansure Grin avatar  avatar  avatar  avatar

Watchers

 avatar

uwcnn's Issues

Picture blur

i used your method in paper to train a model, but when i test images the result doesn't the same as picture in paper,the picture is too haze to look,and i have no idea what's worng in my model, please help thank you.

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.