Giter Club home page Giter Club logo

pd-denoising-pytorch's People

Contributors

yzhouas 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

pd-denoising-pytorch's Issues

CUDA out of memory

I realize that:

"This version of testing script may cause exceeding memory issues in GPU while testing on large images. A testing_on_full image version will be released soon."

But I encountered this issue on an 8GB RTX 2070 on ubuntu 18.04 while trying run_test_on_real_patches.sh

I can confirm that it runs just fine when I resize the provided sample images to 300x300px.

Does this seem right? Will a new version of the script solve this problem? Any idea how soon that might be released?

Thanks!

Test on Pretrained model got diferent results with paper's

I want to verify the results in Table 2 of paper, so i want to know the parameters in test.py.
my settings for the model, logs_color_MC_AWGN_RVIN, are
python test.py --scale 1 --ps 2 --ps_scale 2 --real_n 0 --spat_n 1 --k 0 --mode MC --color 1 --output_map 0 --zeroout 0 --keep_ind 0 --num_of_layers 20 --delog logs/logs_color_MC_AWGN_RVIN --cond 1 --refine 0 --refine_opt 1 --test_data CBSD68 --out_dir results/CBSD68
my result is 29.1037 when s=20 and c=10

PD refinement strategy

Hi, I have read your paper. It' cool to use this pd denoiser. But I cannot understand the edffect of the 3,4 step, you just use this and say these steps can get the texture regions. Can you explain the effect of 3,4 step. Thanks

Validation in training loop - dimensionality problems

Hi! I uncommented the "eval" part in the training loop, and want to use it for validation during training (with color images).
However, I get one of two errors:

Because of the line:
noise_map_val = np.zeros((1, 2*c, img_w, img_h))

In the code
image
The marked line causes a dimension error, as it tries to input a 3 channel image into a 6 channel tensor (as defined above with 2*c).

Otherwise, if I change the above line to
noise_map_val = np.zeros((1, 1*c, img_w, img_h))

The line
out_val_nb = torch.clamp( imgn_val - model(imgn_val, NM_tensor_val), 0., 1.)
Fails, because NM_tensor val has 3 channels and not 6.

What is the right way to input 6 channels into the generated noise map from 3 channels?

Thanks,
Tom

bugs while using k>0 and pre-set stride mode(ps=2)

Hi,

Thanks for your great work on the real-world denoising!
It gives me lots of intuitions.

It's a simple bug while using non-zero k and pre-set stride mode(ps=2).
The oversmoothed image does not be reverse pixel-shuffled.

I think the problem on the N173 in test.py
: max_out_numpy = visual_va2np(max_Out, opt.color, opt.ps, pss, 1, opt.rescale, w, h, c)

I changed it to:
max_out_numpy = visual_va2np(max_Out, opt.color, opt.ps==1 or opt.ps==2, pss, 1, opt.rescale, w, h, c)

Is this right modification for your intend?

Thank you

On the problem of no image generation.

I ran test.py without reporting an error. I set it exactly as the README says. It is normal to read the model and pictures, but only the result saving path is generated, but there is no picture generated in the path. Can you tell me what is the reason?

differences between the proposed base model and the CBDNet?

Hi,
In Figure 3, the basic model is very similar to the CBDNet architecture, but in Table 3 there is a big gap of the PSNR values between CBDNet and "our basic model". I want to know what difference causes this phenomenon. Can you help me find some clues?

Thanks!

for cpu

can you please let me know how to test the model on cpu because it asks for a gpu everytime i run the script

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.