We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a2939 commit a168a30Copy full SHA for a168a30
src/denoising_model.jl
@@ -22,7 +22,7 @@ function denoising_model(shape, shape_p, KERNEL_SIZE, KERNEL_SIGMA = 1.5)
22
23
function grad!(g, x)
24
y .= H(W_T(x))
25
- z .= 1.0 ./ ((y .- b) .^ 2 .+ 1)
+ z .= 1 ./ ((y .- b) .^ 2 .+ 1)
26
@. z = 2 * z * (y - b)
27
g .= W(H_T(z))
28
return g
0 commit comments