Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding the whole process #128

Open
vsantjr opened this issue Mar 16, 2022 · 0 comments
Open

Understanding the whole process #128

vsantjr opened this issue Mar 16, 2022 · 0 comments

Comments

@vsantjr
Copy link

vsantjr commented Mar 16, 2022

Hello,
First of all, congrats for your interesting work. I am just trying to figure out how is the entire process for using RCAN. I have a small dataset for training with low resolution images (128 x 128). I want to use RCAN to increase the resolution of the images to 1024 x 1024. Hence, this is what I could understand:

For training:

  1. Place the original training set in 'OriginalTestData'.
  2. Run 'Prepare_TestData_HR_LR.m' in Matlab to generate HR/LR images with different degradation models.
  3. Run (input=128x128, output=1024x1024)
    python main.py --model RCAN --save my_name --scale 8 --n_resgroups 10 --n_resblocks 20 --n_feats 64 --reset --chop --save_results --print_model --patch_size 1024 --pre_train ../experiment/model/RCAN_BIX8.pt

For inference/testing (to generate the high resolution images)

Steps 1 and 2 before Plus the step below:

python main.py --data_test MyImage --scale 8 --model RCAN --n_resgroups 10 --n_resblocks 20 --n_feats 64 --pre_train ../model/RCAN_BIX8.pt --test_only --save_results --chop --save 'RCAN' --testpath ../LR/LRBI --testset my_test_set

Moreover, I understood that I must split my original training dataset into two: one for training/validation and another for testing. Is it?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant