Skip to content

Leo-student/MIPI23_NFR_LVGroup_HFUT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

MIPI Challenge 2023 Team LVGroup_HFUT

This repository is the official MIPI Challenge 2023 implementation of Team LVGroup_HFUT in Nighttime Flare Removal.

The restoration results (Extraction Code:a9zs) of the tesing images and pretrained model (Extraction Code:l9zt) can be downloaded from Baidu Netdisk.

Usage

Single image inference

cd your/script/path

python infer.py --data_source your/dataset/path --model_path ../pretrained/epoch_0090.pth --save_image --experiment your-experiment-name

Train

cd your/script/path

python train.py --data_source your/dataset/path --experiment your-experiment

Dataset format

The format of the dataset should meet the following code in datasets.py:

self.img_paths = sorted(glob.glob(data_source + '/train' + '/Flare' + '/*.*'))

self.gt_paths = sorted(glob.glob(data_source + '/train' + '/Flickr24K' + '/*.*'))

or

self.img_paths = sorted(glob.glob(data_source + '/val' + '/input' + '/*.*'))

data_source is given by the command line.

mode can be 'train' or 'val'.

Path to saving results

when training and validating: the default path is '../results/your-experiment'

when testing: the default path is '../outputs/your-experiment/test'

when inferring: the default path is '../outputs/your-experiment/infer'

About

Nightime Flare Removal @mipi-challenge (Team LVGroup_HFUT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%