Split & Merge (Convolution NN)

No Padding, No Stride

Padding, Stride

์ž…๋ ฅ ๋‹จ ์ž์ฒด๋ฅผ ๋‚˜๋ˆ„์–ด์„œ ๋…ธ๋“œ๋ฅผ ๋‹จ๋“ค๊ณ  ๋งˆ์ง€๋ง‰์— ํ•ฉ์ณ๋ฒ„๋ฆฐ๋‹ค!

์ด ๋ฐœ์ƒ์€, ๊ณ ์–‘์ด ์‹คํ—˜์œผ๋กœ ๋ถ€ํ„ฐ ์™”๋Š”๋ฐ, ์š”์•ฝํ•˜๋ฉด, ์šฐ๋ฆฌ๋Š” ๊ทธ๋ฆผ ์ „์ฒด๋ฅผ ํŒŒ์•…ํ•˜๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๊ณ , ๋ถ€๋ถ„ ๋ถ€๋ถ„์˜ ์ž…๋ ฅ์„ ๋‚˜๋ˆ„์–ด์„œ ๋ฐ›๋Š”๋‹ค๋Š” ๊ฒƒ์ด ํ•ต์‹ฌ ์•„์ด๋””์–ด์ด๋‹ค.

์ž์„ธํ•œ ์„ค๋ช…์€, index ์—ฌ๊ธฐ์„œ ๊ณต๋ถ€ํ•ด๋ณด์ž!

์—ฌ๊ธฐ์„œ ์ค‘์š”ํ•œ ๊ฒƒ์€,

  1. ํ•„ํ„ฐ์˜ ๊นŠ์ด๋Š” ํ•ด๋‹น Activation map์˜ ๊นŠ์ด์™€ ๊ฐ™์•„์•ผ ํ•œ๋‹ค.
  2. ํ•„ํ„ฐ์˜ ๊ฐœ์ˆ˜์— ๋”ฐ๋ผ Activation map์˜ ๊นŠ์ด๊ฐ€ ๋‹ฌ๋ผ์ง„๋‹ค.
  3. convolution ๋œ ๋’ค์˜ ๋ฉด์ ์€ stride์™€ padding์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง„๋‹ค.

Pooling

= sampling

์••์ถ•? ๊ณผ ๊ฐ™์€ ๊ฐœ๋…!

Avg Pooling

Max Pooling

Fully Connected Layer (FC layer)

๋งˆ์ง€๋ง‰ ๋‹จ์—์„œ ์ตœ์ข… ์ถœ๋ ฅ ๊ฐœ์ˆ˜๋กœ ๋งž์ถฐ์ฃผ๋Š” ๊ฒƒ! ์†Œํ”„ํŠธ๋งฅ์Šค๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

Reference