Code Monkey home page Code Monkey logo

lkd-net's Introduction

[ICME 2023] LKD-Net: Large Kernel Convolution Network for Single Image Dehazing

This is the official implementation of LKD-Net.

Network Architecture

Architecture

Getting Started

Installation

  1. Clone our repository.
git clone https://github.com/SWU-CS-MediaLab/LKD-Net.git
cd LKD-Net
  1. Make conda environment.
conda create -n LKD python=3.7.0
conda activate LKD
  1. Install dependencies.
conda conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=10.2 -c pytorch
pip install -r requirement.txt

Datasets Preparation

RESIDE official website here.

DATASETS FILE STRUCTURE
|-- data
    |-- ITS
        |-- hazy
            |-- *.png
        |-- gt
            |-- *.png
    |-- OTS 
        |-- hazy
            |-- *.jpg
        |-- gt
            |-- *.jpg
    |-- SOTS
        |-- indoor
            |-- hazy
                |-- *.png
            |-- gt
                |-- *.png
        |-- outdoor
            |-- hazy
                |-- *.jpg
            |-- gt
                |-- *.png

Train

Run the following script to train you own model.

python train.py \
--model LKD-t \
--model_name LKD.py \
--num_workers 8 \
--save_dir ./result \
--datasets_dir ./data \
--train_dataset ITS \
--valid_dataset SOTS \
--exp_config indoor \
--gpu 0 \
--exp_name train_my_model \

Test

Run the following script to test the trained mode.

python test.py --model (model name) --model_weight (model weight dir) --data_dir (your dataset dir) --save_dir (path to save test result) --dataset (dataset name) --subset (subset name)

For example, we test the LKD-t on the SOTS indoor set.

python test.py --model LKD-t --model_weight ./result/RESIDE-IN/LKD-t/LKD-t.pth --data_dir ./data --save_dir ./result --dataset SOTS --subset indoor

Acknowledgement

Thanks for the work of Yuda Song et al. Our code is heavily borrowed from the implementation of Dehazeformer.

lkd-net's People

Contributors

swu-cs-medialab avatar zhongjiuhuan 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.