yu4u / noise2noise

An unofficial and partial Keras implementation of "Noise2Noise: Learning Image Restoration without Clean Data"
MIT License
1.07k stars 237 forks source link

How do I get this to work and can it work for what I want it to? #40

Open deama opened 5 years ago

deama commented 5 years ago

Basically, I have some image that has some artifacts and noise, can this software denoise and remove some of the artifacts?

Also, how do I get this to work? I downloaded it but I donno what to commands to put in. I downloaded some sort of gausian clean model from the README and tried to make some command out of it, but doesn't really work? python test_model.py --weight_file clean.hdf5 --image_dir test.png

deama commented 5 years ago

When I put the above command, it tells me that my CPU has instructions that this tensorflow isn't compiled to use? So why not just use the regular instructions? I don't understand...

yu4u commented 5 years ago
    parser.add_argument("--image_dir", type=str, required=True,
                        help="test image dir")

I cannot say anything without the details of the error. Please refer to the other documents for Keras/tensorflow related problems (=not specific to this repo).

deama commented 5 years ago

Did I use the command correctly though?

yu4u commented 5 years ago
deama commented 5 years ago

so: python test_model.py --weight_file clean.hdf5 --test image dir test.png ?

yu4u commented 5 years ago

--image_dir argument only accepts image directory as input.

deama commented 5 years ago

I don't understand, can you spell out the whole command for me?

haideralifaridkhan commented 3 years ago

python test_model.py --weight_file clean.hdf5 --image_dir test.png