율적으로 사용할 수 있습니다. 각 작업을 하나씩 순차적으로 수행한다면 수백 배 이상 느리겠
죠 (앞 절에서 수작업으로 만든 합성곱 연산을 반복문으로 여러 번 수행하는 일이 이에 해당합
니다!). 따라서 뛰어난 딥러닝 실무자가 되려면
GPU
에 한 번에 가능한 한 많은 작업을 제공하
는 방법을 연습해야 합니다.
각 축에서 두 픽셀의 정보를 잃지 않는다면 더 좋겠죠.
padding
을 추가하면 그렇게 할 수 있
습니다. 단순히 이미지 영역 바깥에 추가 픽셀을 배치하는 작업이죠. 이때 가장 일반적으로 사
용하는 픽셀값은
0
입니다.
13.1.3
적절한 패딩을 사용하면 출력 활성 맵의 크기를 원본 이미지와 같게 만들 수 있습니다. 그리고
구조를 훨씬 더 간단히 잡을 수 있습니다. [그림
13
-
4
]는 패딩을 추가하여 이미지 모서리에 커
널을 적용하는 방식을 보여줍니다.
그림
13-4
패딩 처리된 합성곱
5
×
5
입력을
2
픽셀만큼 패딩한 후
4
×
4
커널을 적용하면 [그림
13
-
5
]처럼
6
×
6
의 활성 맵을
얻을 수 있습니다.
그림
13-5
5
×
5
입력을
2
픽셀만큼 패딩한 후
4
×
4
커널을 적용함(출처: 빈센트 드물랭 및 프란체스코 비신)
524
3
딥러닝의 기반 지식
커널의 크기를
ks
×
ks
(홀수)만큼 키울 때, 입력과 같은 모양의 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.