🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

About

[ECCV'24] MetaWeather: Few-Shot Weather-Degraded Image Restoration

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MetaWeather: Few-shot Weather-Degraded Image Restoration (ECCV 2024)

The official code for MetaWeather: Few-shot Weather-Degraded Image Restoration (ECCV 2024).

Setup

    MetaWeather
    β”œ data
    β”‚   β”œ BID
    β”‚   β”‚  β”œ case1
    β”‚   β”‚  β”œ case2
    β”‚   β”‚  β”œ ...
    β”‚   β”‚  β”œ case6
    β”‚   β”‚  β”” gt
    β”‚   β”œ SPAData/real_test_100
    β”‚   β”‚  β”œ input
    β”‚   β”‚  β”” gt
    β”‚   β”œ realsnow
    β”‚   β”‚  β”œ train
    β”‚   β”‚  β”‚  β”œ input
    β”‚   β”‚  β”‚  β”” gt
    β”‚   β”‚  β”” test
    β”‚   β”‚     β”œ input
    β”‚   β”‚     β”” gt
    β”‚   β”œ BID-case1-train.txt
    β”‚   β”œ BID-case1-test.txt
    β”‚   β”œ BID-case2-train.txt
    β”‚   β”œ BID-case2-test.txt
    β”‚   β”œ ...
    β”‚   β”œ BID-case6-test.txt
    β”‚   β”œ spadata-train.txt
    β”‚   β”œ spadata-test.txt
    β”‚   β”œ realsnow-train.txt
    β”‚   β”œ realsnow-test.txt
    β”‚   β”” simmim_pretrain__swin_base__img192_window6__800ep.pth
    β”” checkpoints
        β”œ metaweather_meta_train.pth
        β”œ metaweather_1shot_case1.pth
        β”œ metaweather_1shot_case2.pth
        β”œ ...

Datasets

Download the datasets below:

Pretrained MetaWeather Model

Download checkpoints [Link]

  • Place them in ./checkpoints/

Prerequisite

Use conda environment:

conda env create -f env.yaml

Swin Transformer

If you want to train the model from the scratch, download simmim_pretrain__swin_base__img192_window6__800ep.pth from [Link]

  • Place the file in data.

Usage

Meta-Train

python3 train.py --stage=0 --meta_train=True --exp_name=test

Meta-Test

python3 train.py --stage=1 --case=<case> --meta_train=True --exp_name=test --checkpoint=<path-to-checkpoint>
  • case: (1-6) BID Task II.A Case 1-6, (7) SPA-Data, (8) RealSnow

Evaluation

python3 test.py --case=<case> --exp_name=test --checkpoint=<path-to-checkpoint>
  • case: (1-6) BID Task II.A Case 1-6, (7) SPA-Data, (8) RealSnow

Examples

python3 test.py --case=1 --checkpoint=./checkpoints/metaweather_1shot_case1.pth
python3 test.py --case=3 --checkpoint=./checkpoints/metaweather_1shot_case3.pth

Tested on Ubuntu 20.04, NVIDIA RTX 3090, CUDA 11.7, PyTorch 2.0.1, Python 3.10

References

Our code is built upon the following works:

Citation

TODO

Acknowledgements

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No.2019-0-01126, Self-learning based Autonomic IoT Edge Computing).

About

[ECCV'24] MetaWeather: Few-Shot Weather-Degraded Image Restoration

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages