Comments (2)
Hi,
Suppose you have an image (test.png) and want to super-resolve it with scaling factor x2 (for x3, x4, x8, same way).
The easiest way without modifying the code can be done as follows:
1.make directory: RCAN_TestCode/LR/LRBI/Demo/x2/
2.put your LR image in the above directory: RCAN_TestCode/LR/LRBI/Demo/x2/test.png
3.cd to RCAN_TestCode/code, run the following script
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 ../LR/LRBI --testset Demo
Your result will be in RCAN_TestCode/SR/BI/RCAN/Demo/x2/test.png
from rcan.
I use windows10 and pytorch1.1.0 and followed your steps, but I got results like this:
Traceback (most recent call last):
File "main.py", line 4, in
import data
File "E:\xiang\Super-resolution\RCAN-master\RCAN_TestCode\code\data_init_.py", line 3, in
from dataloader import MSDataLoader
File "E:\xiang\Super-resolution\RCAN-master\RCAN_TestCode\code\dataloader.py", line 17, in
from torch.utils.data.dataloader import _worker_manager_loop
ImportError: cannot import name '_worker_manager_loop'
from rcan.
Related Issues (20)
- 训练的时候出现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得到的结果不一样
- 训练中断了,我应该修改哪里的代码继续训练
- cuDNNerror:CUDNN_STATUS_EXECUTION_FAILED
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.