Coder Social home page Coder Social logo

cszn / dpsr Goto Github PK

View Code? Open in Web Editor NEW
836.0 28.0 211.0 69.79 MB

Deep Plug-and-Play Super-Resolution for Arbitrary Blur Kernels (CVPR, 2019) (PyTorch)

Home Page: https://cszn.github.io/

Python 96.39% MATLAB 3.48% M 0.13%
super-resolution blurry-images srresnet plug-and-play pytorch-implmention

dpsr's Introduction

dpsr's People

Contributors

cszn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dpsr's Issues

About dataset

How to get the low-resolution picture under your code file by using real pictures, as you show the test_01_m_19 picture under x4_m folder and how to get the corresponding .mat file.I want to simulate the entire CBSD68 data set.
Thank you for your answer.

main_test_dpsr problems

when I use 'python main_test_dpsr.py --model_zoo dpsr_x2 --testset set5' to run the testing, image resolution hasn't changed and also after changing sr to dn, nothing changed. Did I set something wrong?
thank you

|--model_zoo
|--dpsr_x2
|--dpsr_x3
|--dpsr_x4
|--dpsr_x4_gan
|--testset
|--set5
|--srbsd68
|--results
|--set5_dpsr_x2

|--main_test_dpsr.py

The kernel appears to have died. It will restart automatically.

Hi, when I run demo_test_dpsr.py, I get an LR image, then the following error message appears: "The kernel appears to have died. It will restart automatically."

When I run demo_test_dpsr.py from the terminal, the same thing basically happens. I see an LR image, then it appears to be running forever.

serious artifacts with the results

I generate the blur kernel with matlab code

mu=[0,0];
[X,Y]=meshgrid(-10:1:10,-10:1:10);
j = 9;
out_path = 'kernels21/G/';
if isdir(out_path)==0
mkdir(out_path)
end
for i = 0:0
for k = 2.5:0.5:6
sigma = [k i ; i k];
kernal = mvnpdf([X(:) Y(:)],mu,sigma);
k = reshape(kernal, size(X));
save([out_path, int2str(j), '.mat'], 'k')
j = j+1;
end
end

and blur the image with opencv function filter2D and input the generated image and kernel lable to test. But I get results with serious artifacts, examples are as follows
img_001_SRF_4_LR
img_002_SRF_4_LR
I don't know why it happens.

Test model problem

Dear Mr. Author@cszn, the work of DPSR is of great significance and gives me great inspiration. when I fully followed the requirements of your training environment and used the "main_train_dpsr.py" provided by you to train the model, I put the generated model into the "main_test_dpsr.py", but reported the following Error:
RuntimeError: Error(s) in loading state_dict for SRResNet:
Missing key(s) in state_dict: "model.2. Weight ", "model.2. Bias ", "model.5. Weight ", "model.5.
Unexpected key(s) in state_dict: "model.3. Weight ", "model.3. Bias ", "model.6. Weight ", "model

When I use your trained "dpsr_x2.pth","dpsr_x3.pth" and "dpsr_x4.pth" to check, but there is no problem, I have tried many ways in the inquiry and failed to solve, Do you have any good suggestion or solutions to my problem

this is the error picture:phttps://imgchr.com/i/JjAZVK

Use

How can I test with my own images? It's not clear to me how it's useful without the matlab files

C++ version

Dear, Everybody.
This is great project. Can you provide c++ version of this project?
Because of i used win10 and Visual Studio 2015 or 2017 or 2019.
Kind regards.

How do I generate blur image using your kernels?

Hi, thanks for the ready-to-go python script. It makes my life so much easier. I was able to successfully replicate your study using your existing photos.

However, I was not able to deblur my own images. To blur my photo, I used your motion kernel (below) on a third-party script.

Is there a way to generate blurred images using your code in python?

colour_kernel

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.