Code Monkey home page Code Monkey logo

hybriddetectiongan's Introduction

HybridDetectionGAN

This is the source code of the paper "Perceptual underwater image enhancement with deep learning and physical priors"

Long Chen, Zheheng Jiang, Lei Tong, Zhihua Liu, Aite Zhao, Qianni Zhang, Junyu Dong, and Huiyu Zhou. "Perceptual underwater image enhancement with deep learning and physical priors".


Abstract

Underwater image enhancement, as a pre-processing step to support the following object detection task, has drawn considerable attention in the field of underwater navigation and ocean exploration. However, most of the existing underwater image enhancement strategies tend to consider enhancement and detection as two fully independent modules with no interaction, and the practice of separate optimisation does not always help the following object detection task. In this paper, we propose two perceptual enhancement models, each of which uses a deep enhancement model with a detection perceptor. The detection perceptor provides feedback information in the form of gradients to guide the enhancement model to generate patch level visually pleasing or detection favourable images. In addition, due to the lack of training data, a hybrid underwater image synthesis model, which fuses physical priors and data-driven cues, is proposed to synthesise training data and generalise our enhancement model for real-world underwater images. Experimental results show the superiority of our proposed method over several state-of-the-art methods on both real-world and synthetic underwater datasets

Dependencies

  • Keras and python 3

Datasets

Test

  • Download our well-trained HybridDetectionGAN models from https://1drv.ms/u/s!At3lDmLw-VwAu0qU-PWQ52pUiLHQ?e=ELzeGk and put them in ../saved_models.
  • Set the test mode in model_perception.py: Comment the test commond self.load_model_and_generate_synthetic_images(), Uncomment the train command: self.train(epochs=self.epochs, batch_size=self.batch_size, save_interval=self.save_interval)
  • Run python model_perception.py

Train

  • First train a high capacity detector using the source code in ../ssd_keras on the MultiView dataset or other detection datasets containing high quality images and depth images, then save the well-trained detection model as ssd512_Clear.h5 in ../HybridDetectionGAN/
  • If you use your own dataset, please set the variables: classes and AnnotationPath as your own dataset in model_perception.py.
  • Set the train mode in model_perception.py: Comment the test commond self.load_model_and_generate_synthetic_images(), Uncomment the train command: self.train(epochs=self.epochs, batch_size=self.batch_size, save_interval=self.save_interval)
  • Run python model_perception.py

hybriddetectiongan's People

Contributors

longchencv avatar

Watchers

James Cloos 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.