Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
밑바닥부터 시작하는 딥러닝 5
by
사이토 고키
,
개앞맵시(이복연)
October 2024
Beginner to intermediate
340 pages
7h 38m
Korean
Hanbit Media, Inc.
Content preview from
밑바닥부터 시작하는 딥러닝 5
253
9
장
확산 모델 구현
v[i]
=
_
pos
_
encoding(ts[i], output
_
dim, device)
# ❶
return
v
v
=
pos_encoding(torch
.
tensor([
1
,
2
,
3
]),
16
)
print
(v
.
shape)
# (3, 16)
인수 중
ts
는 텐서입니다. ❶ 이 텐서의 각 원소에 대해 앞서 구현한 _
pos
_
encoding
(
)
을 호
출합니다. 이것으로 사인파 위치 인코딩 구현을 마칩니다.
9.2.3
U
-
Net
에 통합
마지막으로
U
-
Net
에 사인파 위치 인코딩을 통합합니다. 앞 절에서 구현한
ConvBlock
클래
스에 사인파 위치 인코딩을 도입하겠습니다.
ConvBlock
은 합성곱 계층 두 개로 구성된 처리
단위입니다. 앞 절에서는
ConvBlock
을 사용하여
U
-
Net
을 [그림
9
-
7
]과 같이 구현하였습
니다.
그림
9-7
앞 절에서 구현한
U
-
Net
Conv
ConvBlock
ReLU
BatchNorm
Conv
maxpool
ReLU
BatchNorm
maxpool
x
ConvBlock
ConvBlock
upsample
upsample
ConvBlock
ConvBlock
사용
예
254
밑바닥부터 시작하는 딥러닝 5
이번 절에서는 그림에 등장하는 다섯
ConvBlock
에 사인파 위치 인코딩 정보를 추가합니다.
그림
9-8
사인파 위치 인코딩을 도입한
U
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.
Start your free trial
You might also like
밑바닥부터 시작하는 딥러닝 4
사이토 고키
밑바닥부터 시작하는 딥러닝
사이토 고키
밑바닥부터 시작하는 딥러닝 2
사이토 고키
밑바닥부터 시작하는 비트코인
류정필, 송재준
Publisher Resources
ISBN: 9791169212960