First set a config file in options/train/, then run as following:
python train.py -opt options/train/train_IRN_x4.yml
First set a config file in options/test/, then run as following:
python test.py -opt options/test/test_IRN_x4.yml
First set a config file in options/train/, then run as following:
python train_IRN-Color.py -opt options/train/train_IRN_color.yml
First set a config file in options/test/, then run as following:
python test_IRN-Color.py -opt options/test/test_IRN_color.yml
First set a config file in options/train/, then run as following:
python train_IRN-Compression.py -opt options/train/train_IRN-Compression_x2_q90.yml
First set a config file in options/test/, then run as following:
python test_IRN-Compression.py -opt options/test/test_IRN-Compression_x2_q90.yml
Pretrained models can be downloaded from Google Drive or Baidu Drive (extraction code: rx0z).
The code framework follows BasicSR. It mainly consists of four parts - Config
, Data
, Model
and Network
.
Let us take the train command python train.py -opt options/train/train_IRN_x4.yml
for example. A sequence of actions will be done after this command.
train.py
is called.- Reads the configuration in
options/train/train_IRN_x4.yml
, including the configurations for data loader, network, loss, training strategies and etc. The config file is processed byoptions/options.py
. - Creates the train and validation data loader. The data loader is constructed in
data/__init__.py
according to different data modes. - Creates the model (is constructed in
models/__init__.py
according to different model types). - Start to train the model. Other actions like logging, saving intermediate models, validation, updating learning rate and etc are also done during the training.