Skip to content

Commit a168a30

Browse files
authored
Update src/denoising_model.jl
1 parent 47a2939 commit a168a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/denoising_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function denoising_model(shape, shape_p, KERNEL_SIZE, KERNEL_SIGMA = 1.5)
2222

2323
function grad!(g, x)
2424
y .= H(W_T(x))
25-
z .= 1.0 ./ ((y .- b) .^ 2 .+ 1)
25+
z .= 1 ./ ((y .- b) .^ 2 .+ 1)
2626
@. z = 2 * z * (y - b)
2727
g .= W(H_T(z))
2828
return g

0 commit comments

Comments
 (0)