Giter Club home page Giter Club logo

Comments (13)

YangSN0719 avatar YangSN0719 commented on June 15, 2024

@yu4u
(n2n) [410@mu01 n2n2]$ python test_model.py --weight_file clean/weights.001-109.759-28.05869.hdf5 --image_dir dataset/Set14
/home/410/anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
WARNING:tensorflow:From /home/410/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
2019-04-03 18:57:29.385352: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-04-03 18:57:29.394111: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2095014999 Hz
2019-04-03 18:57:29.395846: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x2b90ea0637c0 executing computations on platform Host. Devices:
2019-04-03 18:57:29.396044: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): ,
: cannot connect to X server 112.38.217.89:10.0

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

Please use --output_dir option to output results images or run the script on a local PC instead of running on a server.

from noise2noise.

YangSN0719 avatar YangSN0719 commented on June 15, 2024

Your source test results are up and running, and the model is up and running. Thank you very much for your contribution.Thanks for your help.
I have a question right now @yu4u
I only have a polluted picture here, I want to use your source code to directly test whether it can be repaired, but I have not found a way to input your source code to go, in this request for your help, thank you very much!

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

If you want to perform denoising to already noisy images, use --test_noise_model clean.

As described in readme.

from noise2noise.

YangSN0719 avatar YangSN0719 commented on June 15, 2024

I have tried the following input,but there is no output,so I would like to consult you, thank you for your reply @yu4u
python3 test_model.py --weight_file model/weights.047-2.317-24.30238_impulse_noise.hdf5 --image_dir teat_img/baby.png --test_noise_model clean --output_dir img/

from noise2noise.

YangSN0719 avatar YangSN0719 commented on June 15, 2024

QQ截图20190409145057

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

image_dir should be directory.

from noise2noise.

YangSN0719 avatar YangSN0719 commented on June 15, 2024

Thank you for your reply @yu4u
Thank you for your help. I have successfully run it.
But I still have some questions to ask you. Because my photo is badly damaged, I cannot tell which type of noise it is. Adopting your pretrain model doesn't seem to work. Should I train with more of these images and try to see if it works?

from noise2noise.

YangSN0719 avatar YangSN0719 commented on June 15, 2024

If I type the following command, is it correct?
python3 train.py --image_dir dataset/mydata --test_dir dataset/mytes --image_size 128 --batch_size 8 --lr 0.001 --source_noise_model clean --target_noise_model clean --val_noise_model clean --loss l0 --output_path mymodel

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

Might correct.

I cannot tell which type of noise it is

But, it would not work.
This repository aims at reproducing noise2noise training, and not trying to remove various types of noises.
For general purpose, you might be able to find other more appropriate repository.

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

Please read original paper about the restrictions of noise2noise approach.

from noise2noise.

Anisha007 avatar Anisha007 commented on June 15, 2024

image_dir should be directory.

It would be great if you be more specific. What exactly causes this error and how can we solve it if we are deploying from the server? thanks in advance @yu4u

from noise2noise.

yu4u avatar yu4u commented on June 15, 2024

--image_dir should be directory that contains test images.

from noise2noise.

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.