Skip to content

Commit 7f29a09

Browse files
committed
adjust notebook
1 parent aa60cfe commit 7f29a09

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ my TensorFlow practice of "Deep Image Prior"
33

44
## Text inpainting
55

6+
Jupyter Notebook:
7+
[text_inpainting_test.ipynb](https://github.com/thisray/Deep-Image-Prior_TF-practice/blob/master/text_inpainting_test.ipynb)
8+
9+
Corrupted image:
10+
11+
![image](https://github.com/thisray/Deep-Image-Prior_TF-practice/blob/master/pic_output/corrupted_image.png)
12+
13+
Result:
14+
15+
![image](https://github.com/thisray/Deep-Image-Prior_TF-practice/blob/master/pic_output/lenna_ti_3000_final.png)
616

text_inpainting_test.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
"\n",
9595
" pad_size = int(np.ceil(((output_size - 1) * stride + kernel_size - input_size) * 0.5))\n",
9696
" tf_input_image = tf.pad(tf_input_image, \n",
97-
" [[0, 0], [pad_size, pad_size], [pad_size, pad_size], [0, 0]], \"REFLECT\")\n",
97+
" [[0, 0], [pad_size, pad_size], [pad_size, pad_size], [0, 0]], \n",
98+
" \"REFLECT\")\n",
9899
" \n",
99100
" return tf_input_image\n",
100101
"\n",

0 commit comments

Comments
 (0)