diff --git a/scripts/run_experiments.jl b/scripts/run_experiments.jl index f5b14812c1f39aed0d773250c910273416ac118d..2117e468c91711b02894d9e6cca22b85e01eca38 100644 --- a/scripts/run_experiments.jl +++ b/scripts/run_experiments.jl @@ -1354,13 +1354,15 @@ function inpaint(ctx) if ctx.params.n_refine == 0 # if we use a grid at image resolution, we wan't to avoid # information loss at all cost. - # projet_l2_pixel is not suited for inpainting as it is a global + # project_l2_pixel is not suited for inpainting as it is a global # operator, which may leak data from the inpainting domain interpolate!(st.g, x -> evaluate_bilinear(g_arr, x)) + interpolate!(st.tdata, x -> evaluate_bilinear(mask_arr, x)) else project_image!(st.g, g_arr) + # TODO: maybe a more conservative choice would be good + project_image!(st.tdata, mask_arr) end - project_image!(st.tdata, mask_arr) end save_step(i) =