Professional Documents
Culture Documents
Advanced CNN
Advanced CNN
https://arxiv.org/abs/1512.03385v1
Review Skip Connection
https://www.analyticsvidhya.com/blog/2021/08/all-you-need-to-know-about-skip-connections/
Review Skip Connection
https://www.analyticsvidhya.com/blog/2021/08/all-you-need-to-know-about-skip-connections/
Review Skip Connection
https://www.analyticsvidhya.com/blog/2021/08/all-you-need-to-know-about-skip-connections/
Review Skip Connection
Skip
connection
Review Skip Connection
Skip connection
Short skip connection :
(ví dụ Renset)
Skip connection
Long skip connection :
(ví dụ Unet)
Review Skip Connection
Skip
connection
ADDITION CONCATENATION
Review Skip Connection
ADDITION
CONCATENATION
https://www.tutorialexample.com/a-beginner-introduction-to-highway-networks-machine-learning-tutorial/
Variants of skip connection
• ResNet Architecture
– Concatenation:
( ) = ( ) +
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
– Concatenation:
Variants of skip connection
• ResNet Architecture
( ) = ( ) +
= = ( + 1) = +
• ResNet Architecture
https://slideplayer.com/slide/14282282/
Variants of skip connection
• ResNet Architecture
Option A Option B
≠ ( )
Variants of skip connection
• ResNet Architecture
Renset Option A Renset Option B Renset Option C
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
- Tất cả option đều tốt hơn plain network
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
Identity Shortcut
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
- Training on CIFAR-10.
- Dashed lines denote training error, and bold lines denote testing error.
- Left: plain networks. The error of plain-110 is higher than 60% and not displayed.
- Middle: ResNets.
- Right: ResNets with 110 and 1202 layers.
https://arxiv.org/abs/1512.03385v1
Variants of skip connection
• ResNet Architecture
( ) = ( ) +
= = ( + 1) = +
- Khi không cần học ở nhóm layer này thì nó sẽ được điều hướng và học như identity
function
- Gradient qua các layer có thể sẽ nhỏ dần và bằng 0, do đó skip connection giup thông
tin truyền ngược lại dễ hơn
- ResNet với kỹ thuật skip connection cho phép xây dựng mode sâu hơn và
performance vẫn tốt hơn so với shallow network.
- ResNet bản gốc được dùng cho image classification và sau này được sử dụng như
backbone họặc cơ chế skip connection được sử dụng rộng rãi trong image
segmentation, keypoint detection and object detection, ...
Variants of skip connection
• Densenet Architecture
- Làm giảm được vanishing-gradient problem
https://arxiv.org/pdf/1608.06993.pdf
Variants of skip connection
• Densenet Architecture
Resnet Densenet
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Layer cuối cùng sẽ có tất cả thông tin về feature map của các layer trước đó
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Sử dụng
convolution layer
1x1 để giảm kích
thước dimension
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Transition Layer
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
– k là growth rate: quyết định số lượng channel
Dense block
Transition layer
Convolution block
4*k
channels 0,5*k
channels
k
channels
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
https://arxiv.org/pdf/1608.06993.pdf
Variants of skip connection
• Densenet Architecture
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Parameter and Computation Efficiency - l: là layer
index
- concatenate:
giúp cho việc
feature input
được đa dạng
hơn
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Parameter and Computation Efficiency - Làm tăng
được độ mạnh
và phức tạp
của các
feautres
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
Parameter and Computation Efficiency
https://www.youtube.com/watch?v=-W6y8xnd--U&t=527s
Variants of skip connection
• Densenet Architecture
https://arxiv.org/pdf/1608.06993.pdf
Variants of skip connection
• Unet Architecture
https://arxiv.org/abs/1505.04597v1
Variants of skip connection
• Unet Architecture
Decoder: là phần
Encoder: Là phần khôi phục lại kích
hoạt động bình thước feature map,
thường như CNN kết hợp với skip
model (vd VGG19) connection để tạo
để extract feature output là image
https://arxiv.org/abs/1505.04597v1
Variants of skip connection
• Unet Architecture
– Các biến thể khác : Vnet
https://theaisummer.com/unet-architectures/
Variants of skip connection
• Unet Architecture
– Các biến thể khác : Unet++
https://theaisummer.com/unet-architectures/
Content
Identity Shortcut
Projection Shortcut
Problem1: Implement ResNet34 Architectures
Projection Shortcut
Content
• Problem2: Implement Densenet121 Architecture
– Analyze Densenet121 architecture and its components
– Implement step by step
• Problem3: Implement Unet Architecture:
– Analyze Unet architecture and its components
– Implement step by step
• Problem4: Weather Recognition with Skip Connection Model
– Prepare Data
– Recognize Weather with ResNet34 (without skip connection)
– Recognize Weather with ResNet34 (with skip connection)
– Recognize Weather with Densenet121 (without skip connection)
– Recognize Weather with Densenet121 (with skip connection)
– Compare results
Problem2: Implement Densenet121 Architecture
• Densenet Architecture
– k là growth rate: quyết định số lượng channel
Dense block
Convolution block
4*k
channels
k
channels
Problem2: Implement Densenet121 Architecture
• Densenet Architecture
– k là growth rate: quyết định số lượng channel
Transition layer
0,5*k
channels
Content
• Problem2: Implement Densenet121 Architecture:
– Analyze Densenet121 architecture and its components
– Implement step by step
• Problem3: Implement Unet Architecture
– Analyze Unet architecture and its components
– Implement step by step
• Problem4: Weather Recognition with Skip Connection Model
– Prepare Data
– Recognize Weather with ResNet34 (without skip connection)
– Recognize Weather with ResNet34 (with skip connection)
– Recognize Weather with Densenet121 (without skip connection)
– Recognize Weather with Densenet121 (with skip connection)
– Compare results
Problem3: Implement Unet Architecture
ResNet34 ResNet34
No Skip
Connection
Densenet121 Densenet121
No skip
connection
Problem2: Comparing Downsample Techniques
• Compare Results
ResNet34 ResNet34
No Skip
Connection
Densenet121 Densenet121
No skip
connection
Content
https://beyondminds.ai/blog/an-introduction-to-super-resolution-using-deep-learning/
Problem5: Super Resolution
Epoch
thứ nhất
Problem5: Super Resolution
• Results (Unet no skip connection)
Epoch
thứ 40
Problem5: Super Resolution
• Results (Unet)
Epoch
thứ nhất
Problem5: Super Resolution
• Results (Unet)
Epoch
thứ 40
Problem5: Super Resolution
Epoch thứ nhất unet (no skip connection )