質問編集履歴
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,3 +17,57 @@
|
|
17
17
|
●畳みこみ層・・パターンが1なのか-1なのかを比較する
|
18
18
|
|
19
19
|
●プーリング層・・畳みこみ層の結果をウィンドウに細分化し、それぞれのウィンドウで最大値を算出して画像の適合度を担保することで、重要な情報を残して縮小する
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```python
|
24
|
+
|
25
|
+
# 畳み込み1層
|
26
|
+
|
27
|
+
h_conv1_result = h_conv1.eval(feed_dict=feed_dict)
|
28
|
+
|
29
|
+
for i, result in enumerate(h_conv1_result):
|
30
|
+
|
31
|
+
images = channels_to_images(result)
|
32
|
+
|
33
|
+
save_image("3_%s_h_conv1_%02d.png" % (tag, i), images)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
# プーリング1層
|
38
|
+
|
39
|
+
h_pool1_result = h_pool1.eval(feed_dict=feed_dict)
|
40
|
+
|
41
|
+
for i, result in enumerate(h_pool1_result):
|
42
|
+
|
43
|
+
images = channels_to_images(result)
|
44
|
+
|
45
|
+
save_image("3_%s_h_pool1_%02d.png" % (tag, i), images)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# 畳み込み2層
|
50
|
+
|
51
|
+
h_conv2_result = h_conv2.eval(feed_dict=feed_dict)
|
52
|
+
|
53
|
+
for i, result in enumerate(h_conv2_result):
|
54
|
+
|
55
|
+
images = channels_to_images(result)
|
56
|
+
|
57
|
+
save_image("3_%s_h_conv2_%02d.png" % (tag, i), images)
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
# プーリング2層
|
62
|
+
|
63
|
+
h_pool2_result = h_pool2.eval(feed_dict=feed_dict)
|
64
|
+
|
65
|
+
for i, result in enumerate(h_pool2_result):
|
66
|
+
|
67
|
+
images = channels_to_images(result)
|
68
|
+
|
69
|
+
save_image("3_%s_h_pool2_%02d.png" % (tag, i), images)
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,4 +16,4 @@
|
|
16
16
|
|
17
17
|
●畳みこみ層・・パターンが1なのか-1なのかを比較する
|
18
18
|
|
19
|
-
●プーリング層・・畳みこみ層の結果を重要な情報を残して縮小する
|
19
|
+
●プーリング層・・畳みこみ層の結果をウィンドウに細分化し、それぞれのウィンドウで最大値を算出して画像の適合度を担保することで、重要な情報を残して縮小する
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,9 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
[畳みこみ層とプーリング層の解説記事](http://postd.cc/how-do-convolutional-neural-networks-work/)を読んでいると、各層の処理はまったく違うものだという認識なのですが。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
●畳みこみ層・・パターンが1なのか-1なのかを比較する
|
18
|
+
|
19
|
+
●プーリング層・・畳みこみ層の結果を重要な情報を残して縮小する
|