Giter Site home page Giter Site logo

Blind gaussian denoising about dncnn-tensorflow HOT 13 OPEN

wbhu avatar wbhu commented on August 25, 2024
Blind gaussian denoising

from dncnn-tensorflow.

Comments (13)

clausmichele avatar clausmichele commented on August 25, 2024 1

In my fork I implemented blind denoising with 0-50 levels for RGB images https://github.com/clausmichele/DnCNN-tensorflow

from dncnn-tensorflow.

SaoYan avatar SaoYan commented on August 25, 2024

My PyTorch implementation maybe helpful.

https://github.com/SaoYan/DnCNN-PyTorch

Please refer to line 70~75 in train.py

from dncnn-tensorflow.

qwbmiao avatar qwbmiao commented on August 25, 2024

Hello!Your code looks so cool!

I want to ask you that how I do to implement blind guassian noise by using the code.I try to change the sigma by "feed" like learning rate(lr) in the code,but failed.

self.X = self.Y_ + tf.random_normal(shape=tf.shape(self.Y_), stddev=self.sigma)

So can you tell me how to implement it?Thank you very much

from dncnn-tensorflow.

liting11 avatar liting11 commented on August 25, 2024

hi,your code is very cool that is modified.But I went wrong when I work it.I run the main program directly.I don't know that reason is what.can you tell me why?could you tell your email?i want to learn for you.thank you so much

from dncnn-tensorflow.

clausmichele avatar clausmichele commented on August 25, 2024

Can you explain more in detail what kind of problem you have? It is impossible to say what went wrong without any details of where you are running the software.

from dncnn-tensorflow.

liting11 avatar liting11 commented on August 25, 2024

I am very happy to receive your reply.thank you very much.you are very good man .I can't run the program you modified。When I run main.py,there was an error about 'TypeError: 'range' object does not support item assignment',I think there are questions about my opencv.I installed OpenCV on the software of spyder, but I couldn't use it.I don't why?You can help me analyze it?Thanks for dear.

from dncnn-tensorflow.

clausmichele avatar clausmichele commented on August 25, 2024

Please post the full error you get, so I can see the line number and try to understand what's the problem. By the way, I am using OpenCV 3.4 compiled from source, because the python version available is older, but this should not be the problem.

from dncnn-tensorflow.

liting11 avatar liting11 commented on August 25, 2024

This is result about when runned 'main.py' directly.
runfile('F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master/main.py', wdir='F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master')
GPU

Traceback (most recent call last):

File "", line 1, in
runfile('F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master/main.py', wdir='F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master')

File "D:\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)

File "D:\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master/main.py", line 84, in
tf.app.run()

File "D:\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))

File "F:/dncnn/DnCNN-tensorflow-master/DnCNN-tensorflow-master/main.py", line 56, in main
model = denoiser(sess)

File "F:\dncnn\DnCNN-tensorflow-master\DnCNN-tensorflow-master\model.py", line 41, in init
self.dataset = dataset(sess)

File "F:\dncnn\DnCNN-tensorflow-master\DnCNN-tensorflow-master\model.py", line 204, in init
random.shuffle(ind)

File "D:\Anaconda3\lib\random.py", line 272, in shuffle
x[i], x[j] = x[j], x[i]

TypeError: 'range' object does not support item assignment

from dncnn-tensorflow.

clausmichele avatar clausmichele commented on August 25, 2024

Running main.py only starts the training, is what you want? Do you have the images in the correct folders? Try main.py --phase=test with some test images in the right folders first.

from dncnn-tensorflow.

liting11 avatar liting11 commented on August 25, 2024

yes,I want to run your code to strart the training.I haved the images in the correct folders.Did your code work successful?Result?

from dncnn-tensorflow.

clausmichele avatar clausmichele commented on August 25, 2024

Check that ind isn't empty or None and try without random.shuffle(ind)

from dncnn-tensorflow.

Pichairen avatar Pichairen commented on August 25, 2024

@clausmichele Hi,When I run main.py --phase=test,there is an error happen, AssertionError: No testing data! whether I need download other testing data?

from dncnn-tensorflow.

Shakarim94 avatar Shakarim94 commented on August 25, 2024

Hello guys, I recently implemented CDnCNN-B (blind color denoising) based on this repository

from dncnn-tensorflow.

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.