Comments (13)
In my fork I implemented blind denoising with 0-50 levels for RGB images https://github.com/clausmichele/DnCNN-tensorflow
from dncnn-tensorflow.
My PyTorch implementation maybe helpful.
https://github.com/SaoYan/DnCNN-PyTorch
Please refer to line 70~75 in train.py
from dncnn-tensorflow.
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.
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.
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.
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.
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.
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.
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.
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.
Check that ind isn't empty or None and try without random.shuffle(ind)
from dncnn-tensorflow.
@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.
Hello guys, I recently implemented CDnCNN-B (blind color denoising) based on this repository
from dncnn-tensorflow.
Related Issues (20)
- hi, i want to know how do you get your denoisy images in training and testing, can you tell me? thank you very much. HOT 1
- error xrange HOT 2
- error: AttributeError: 'Namespace' object has no attribute 'temporal' HOT 3
- Loss function formula
- Why should I feed the clear image when running the TEST part? HOT 1
- closed
- DnCNN last layer HOT 1
- Different patches for noisy and clean pairs
- Handling the variable image sizes
- About patch disunderstand
- 'float' object cannot be interpreted as an integer HOT 1
- Memory Explode HOT 6
- help HOT 2
- where is the test set?
- Same picture for denoised and noisy HOT 1
- This program will not run at all, the Python version is too old, and there are no test data. In short, it is terrible. HOT 1
- Does the size of each image have to be fixed as 180*180? HOT 1
- How to use this model for my data?
- Got Fetch argument None has invalid type <class 'NoneType'> error HOT 1
- Performance issue in /model.py (by P3) HOT 2
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 dncnn-tensorflow.