Giter Club home page Giter Club logo

Comments (2)

yulunzhang avatar yulunzhang commented on August 30, 2024

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.

Lane565 avatar Lane565 commented on August 30, 2024

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)

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.