Giter Club home page Giter Club logo

ldct_sr_dn_w_ffdm's Introduction

0. Thanks

We express our highest respect and gratitude for the open-source work of BasicSR.

1. Environment preparation

Anaconda is suggested. Install the necessary packages:

conda create -n lqct_sr_dn python=3.9.7
conda activate lqct_sr_dn
pip install -r requirements.txt
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install -e .

2. Data preparation

You should prepare your data in this way:

data_rootdir
    - dataset_name
        - img
            - hr_nd
                - train
                - val
                - test
            - lr_ld
                - x2
                    - train
                    - train_avg
                    - val
                    - val_avg
                    - test
                    - test_avg
                - x4
                    - train
                    - train_avg
                    - val
                    - val_avg
                    - test
                    - test_avg
            - lr_nd
                - x2
                    - train
                    - val
                    - test
                - x4
                    - train
                    - val
                    - test
        -mask
            - hr
                - train
                - val
                - test
            - x2
                - train
                - val
                - test
            - x4
                - train
                - val
                - test

3. Train

To train the network, you should modify the config files in "options/train" folder first.

Train the network with the scale factor of 2:

python basicsr/train.py -opt options/train/sr_dn_x2.yml

Train the network with the scale factor of 4:

python basicsr/train.py -opt options/train/sr_dn_x4.yml

4. Test

To test the network, you should modify the config files in "options/test" folder first.

Test the network with the scale factor of 2:

python basicsr/train.py -opt options/test/sr_dn_x2.yml

Test the network with the scale factor of 4:

python basicsr/train.py -opt options/train/sr_dn_x4.yml

ldct_sr_dn_w_ffdm's People

Contributors

neu-szy avatar

Watchers

 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.