Skip to content

Commit ed4866b

Browse files
author
yusuke-a-uchida
committed
Random-valued impulse noise model and L0 loss were added
1 parent 20ac2e0 commit ed4866b

6 files changed

+21
-1
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ If UNet is used, the result becomes 29.67 (noisy targets) vs. 30.14 (clean targe
110110

111111
<img src="result/val_PSNR_text.png" width="480px">
112112

113+
#### Random-valued impulse noise
114+
<img src="result/val_loss_impulse.png" width="480px">
115+
116+
117+
<img src="result/val_PSNR_impulse.png" width="480px">
118+
119+
113120
#### Check denoising result
114121

115122
```bash
@@ -134,6 +141,15 @@ Denoising result by noise target model:
134141

135142
<img src="result/baby_GT_text_noise.png" width="800px">
136143

144+
##### Random-valued impulse noise
145+
Denoising result by clean target model
146+
147+
<img src="result/baby_GT_impulse_clean.png" width="800px">
148+
149+
Denoising result by noise target model:
150+
151+
<img src="result/baby_GT_impulse_noise.png" width="800px">
152+
137153

138154
#### Trained weights
139155

@@ -145,6 +161,10 @@ Denoising result by noise target model:
145161

146162
[Text insertion, clean target](https://github.com/yu4u/noise2noise/releases/download/v0.1/weights.056-4.172-28.07752_text_clean.hdf5)
147163

164+
[Random-valued impulse noise, noise target](https://github.com/yu4u/noise2noise/releases/download/v0.1/weights.047-2.317-24.30238_impulse_noise.hdf5)
165+
166+
[Random-valued impulse noise, clean target](https://github.com/yu4u/noise2noise/releases/download/v0.1/weights.038-4.547-24.81654_impulse_clean.hdf5)
167+
148168
### TODOs
149169

150170
- [x] Compare (noise, clean) training and (noise, noise) training

result/baby_GT_impulse_clean.png

1.76 MB
Loading

result/baby_GT_impulse_noise.png

1.75 MB
Loading

result/val_PSNR_impulse.png

38.9 KB
Loading

result/val_loss_impulse.png

24.4 KB
Loading

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_args():
4141
parser.add_argument("--steps", type=int, default=1000,
4242
help="steps per epoch")
4343
parser.add_argument("--loss", type=str, default="mse",
44-
help="loss; mse' or 'mae' is expected")
44+
help="loss; mse', 'mae', or 'l0' is expected")
4545
parser.add_argument("--output_path", type=str, default="checkpoints",
4646
help="checkpoint dir")
4747
parser.add_argument("--source_noise_model", type=str, default="gaussian,0,50",

0 commit comments

Comments
 (0)