Skip to Content
파이토치로 배우는 LLM & AI
book

파이토치로 배우는 LLM & AI

by 로런스 모로니, 박해선
March 2026
Intermediate
504 pages
11h 26m
Korean
Hanbit Media, Inc.
Content preview from 파이토치로 배우는 LLM & AI
321
12
장
추론의 개념
12.2
이미지 데이터
이미지는 일반적으로
JPEG
나
PNG
와 같은 포맷으로 저장됩니다. 이 포맷은 사람이 확인하기
에 좋을 뿐만 아니라 저장 효율성에도 최적화되어 있습니다. 일반적으로 이미지의 각 점 (또는
픽셀 )은 색상 채널의 강도를 나타내는 여러 값으로 구성됩니다. 일반적으로 이미지는
24
비트
데이터를 가지며, 빨강 (
R
), 초록 (
G
), 파랑 (
B
) 채널에 각각
8
비트가 할당됩니다.
32
비트의
이미지일 경우 추가
8
비트는 알파
alpha
채널 또는 투명도를 위한 것입니다.
예를 들어 초록색 픽셀은 빨강, 파랑, 알파 채널의 값이
0
이고 초록 채널의 값이
255
입니다. 반
투명한 픽셀이라면 빨강과 파랑 채널은 여전히
0
이지만 알파 채널은
128
, 초록 채널은
255
의
값을 가질 수 있습니다.
일반적으로 이미지 파일은 압축되어 있습니다. 즉, 수학적인 변환이 적용되어 데이터 낭비를
방지하고 이미지 크기를 더 작게 만들었다는 의미입니다. 이미지에는 메타데이터, 파일 헤더
등이 포함될 수도 있습니다. 그런 다음 이미지가 메모리에 로드되면 압축이 해제되어 일반적으
로 앞서 설명한 것처럼 픽셀당
32
비트가 됩니다.
머신러닝 모델은 일반적으로 이미지가 저장되는 기본 형태인
0
에서
255
가 아니라 -
1
에서
1
사이의 값을 사용합니다. 이미지의 ...
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

PyTorch의 코더를 위한 AI 및 ML

PyTorch의 코더를 위한 AI 및 ML

Laurence Moroney
헤드 퍼스트 자바(3판)

헤드 퍼스트 자바(3판)

케이시 시에라, 버트 베이츠

Publisher Resources

ISBN: 9791175790223