Skip to Content
fastai와 파이토치가 만나 꽃피운 딥러닝
book

fastai와 파이토치가 만나 꽃피운 딥러닝

by 박찬성, 김지은, 제러미 하워드, 실뱅 거거
August 2021
Beginner to intermediate
720 pages
15h 32m
Korean
Hanbit Media, Inc.
Content preview from fastai와 파이토치가 만나 꽃피운 딥러닝
314
2
fastai 애플리케이션 계층 이해하기
7.2

평균이
0
이고 표준편차가
1
임을 의미하는

된 입력 데이터는 모델 학습에 도움이 됩니다.
하지만 이미지 및 영상 처리 라이브러리는 대부분
0
에서
255
또는
0
에서
1
사이의 픽셀값을
사용하므로, 정규화 조건을 만족하지 못합니다.
데이터에서 배치 하나를 가져와서 채널 축을 제외한 모든 축값의 평균과 표준편차를 살펴봅니
다(채널 축의 색인 번호는
1
입니다 ).
>>> x,y = dls.one_batch()
>>> x.mean(dim=[0,2,3]),x.std(dim=[0,2,3])
(TensorImage([0.4842, 0.4711, 0.4511], device='cuda:5'),
TensorImage([0.2873, 0.2893, 0.3110], device='cuda:5'))
예상한 대로 평균과 표준편차는 정규화 조건을 만족하지 않습니다. 다행히
fastai
에서는
Noramlize
변형만 추가하면 데이터를 쉽게 정규화할 수 있습니다. 한 번에 미니배치 하나 단
위로 처리하므로 데이터블록의
batch
_
tfms
부분에 추가하면 됩니다. 인자로 원하는 평균과
표준편차를 지정해야 하지만,
fastai
는 미리 이미지넷의 표준 평균과 표준편차를 정의하여 제
공합니다 (
Normalize
에 통계 정보를 넘기지 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
러닝 타입스크립트

러닝 타입스크립트

조시 골드버그
GPT-4를 활용한 인공지능 앱 개발

GPT-4를 활용한 인공지능 앱 개발

올리비에 케일린, 마리 알리스 블레트

Publisher Resources

ISBN: 9791162244630