Comments (4)
please use '--degradation BI'
from rcan.
(deeplearning) administrator@administrator-System-Product-Name:~/Desktop/Projects/RCAN/RCAN_TestCode/code$ 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 --self_ensemble --save 'RCANplus' --testpath /home/administrator/Desktop/Projects/RCAN/RCAN_TestCode/LR/LRBI --degradation BD --testset Set5
Making model...
Use DIV2K mean (0.4488, 0.4371, 0.4040)
Loading model from ../model/RCAN_BIX8.pt
Evaluation:
100%|█████████████████████████████████████████████| 5/5 [00:49<00:00, 9.91s/it]
[MyImage x8] PSNR: 0.000 (Best: 0.000 @epoch 1)
Total time: 49.54s, ave time: 9.91s
I am getting better resolution images. It is just it is showing 0000 value of PSNR. Is it normal or there is something wrong?
from rcan.
Please also tell what is the role of degradation BD. There is not much mentioned regarding this in readme.
from rcan.
When we feed LR images to the network, we don't have the HR image as reference. So, we cannot calculate PSNR in the code and just set it as 0. To obtain correct PSNR values, please use matlab script, groud truth images, and our upscaled images to calculate thems. I clarified those details in the readme.
In the readme, I've shown that:
# BI degradation model, X2, X3, X4, X8
# RCAN_BIX2
python main.py --data_test MyImage --scale 2 --model RCAN --n_resgroups 10 --n_resblocks 20 --n_feats 64 --pre_train ../model/RCAN_BIX2.pt --test_only --save_results --chop --save 'RCAN' --testpath /media/yulun/Disk10T/datasets/super-resolution/LRBI --testset Set5
# RCAN_BIX3
python main.py --data_test MyImage --scale 3 --model RCAN --n_resgroups 10 --n_resblocks 20 --n_feats 64 --pre_train ../model/RCAN_BIX3.pt --test_only --save_results --chop --save 'RCAN' --testpath /media/yulun/Disk10T/datasets/super-resolution/LRBI --testset Set5
# RCAN_BIX4
python main.py --data_test MyImage --scale 4 --model RCAN --n_resgroups 10 --n_resblocks 20 --n_feats 64 --pre_train ../model/RCAN_BIX4.pt --test_only --save_results --chop --save 'RCAN' --testpath /media/yulun/Disk10T/datasets/super-resolution/LRBI --testset Set5
# RCAN_BIX8
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 /media/yulun/Disk10T/datasets/super-resolution/LRBI --testset Set5
# BD degradation model, X3
# RCAN_BDX3
python main.py --data_test MyImage --scale 3 --model RCAN --n_resgroups 10 --n_resblocks 20 --n_feats 64 --pre_train ../model/RCAN_BDX3.pt --test_only --save_results --chop --save 'RCAN' --testpath /media/yulun/Disk10T/datasets/super-resolution/LRBD --degradation BD --testset Set5
'--degradation BI' is for BI model. '--degradation BD' is for BD model. I set them for easier file naming. These two degradation models are clearified in our paper.
from rcan.
Related Issues (20)
- Tips for training from scratch
- 训练的时候出现RuntimeError !! HOT 2
- how to choose the best model for test images?model_best.pt or model_latest.pt ?
- About test on Set5 dataset
- The Training time increasses while increasing the number of GPU
- About test on Set14
- How to divide the image into patches?
- NameError: ForkingPickler(file, protocol).dump(obj) name 'torch' is not definedBrokenPipeError : [Errno 32] Broken pipe
- About the calculation of PSNR
- RuntimeError:
- Understanding the whole process
- RCAN: tail module
- Can you provide the change curve of psnr during your training?
- batchsize=1
- How do self-ensemble
- The output value explode
- PSNR Problem
- Baidu download link in the “The whole test pipeline” is not useful
- 为什么使用--chop和不使用--chop得到的结果不一样
- 训练中断了,我应该修改哪里的代码继续训练
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcan.