๐กNetwork (์ํคํ ์ฒ ๊ตฌ์กฐ)
EfficientNet Network๋ ๋ฉ์ธ์ผ๋ก mobile inverted bottleneck convolution(MBConv)
block์ ์ฌ์ฉํ๋ค. MBConv block Depthwise separable conv์
Squeeze-and-excitation(se) ๊ฐ๋ ์ ์ ์ฉํ ๋ฐฉ์์ด๋ค.
๐ https://github.com/qubvel/efficientnet
GitHub - qubvel/efficientnet: Implementation of EfficientNet model. Keras and TensorFlow Keras.
Implementation of EfficientNet model. Keras and TensorFlow Keras. - GitHub - qubvel/efficientnet: Implementation of EfficientNet model. Keras and TensorFlow Keras.
github.com
๐ https://keras.io/examples/vision/image_classification_efficientnet_fine_tuning/
Keras documentation: Image classification via fine-tuning with EfficientNet
Image classification via fine-tuning with EfficientNet Author: Yixing Fu Date created: 2020/06/30 Last modified: 2020/07/16 Description: Use EfficientNet with weights pre-trained on imagenet for Stanford Dogs classification. View in Colab • GitHub source
keras.io
๐ ํน์ง
EfficientNet ๋ชจ๋ธ์ Network Depth, Filter ๊ฐ์(width), Image Resolution ํฌ๊ธฐ๋ฅผ
์ต์ ์ผ๋ก ์กฐํฉํ์ฌ ๋ชจ๋ธ ์ฑ๋ฅ์ ๊ทน๋ํ ํ๋ค.
๐ Depth, Width, Resolution์ ๋ชจ๋ ์ฐจ์์ ๊ท ์ผํ๊ฒ scalingํ๋
์๋ก์ด ๋ฐฉ๋ฒ์ ์ ์2019๋ ๊ธฐ์ค (FLOFS๋ ์ด๋น ๋ถ๋์์์ ์ฐ์ฐ ํ์)
โ๏ธ ๊ฐ๋ณ Scaling ์์์ ๋ฐ๋ฅธ ์ฑ๋ฅ ํฅ์ ํ ์คํธ
- Depth, ๋คํธ์ํฌ ๊น์ด๋ฅผ ํ์ฅํ๋ ๊ฒ์ CNN์์ ์ผ๋ฐ์ ์ธ ๋ฐฉ์์ด๋ฉฐ, ๊น์ด๊ฐ ๊น์์๋ก ์ผ๋ฐํ์ ์ธ feature map์ ์ถ์ถ ํ ์ ์๋ค. ํ์ง๋ง ๊ธฐ์ธ๊ธฐ ์์ค์ ๋ํ ๋ฌธ์ ๊ฐ ์กด์ฌ
- Width, scalingํ๋ ๋ฐฉ๋ฒ์ ์ฃผ๋ก ์ํ ๋ชจ๋ธ์ ์ฌ์ฉ๋๋ฉฐ, width๊ฐ ํด์๋ก network๊ฐ ํจ์ฌ ๋์ด์ง๋ฉด acc๊ฐ ๋น ๋ฅด๊ฒ saturate ๋๋ ๊ฒ์ ํ์ธ ํ ์ ์๋ค.
- Resolution, CNN์์ ๊ณ ํด์๋ input image๋ฅผ ์ฌ์ฉ ํ ์๋ก ์ ํ๋๊ฐ ํฅ์ ๋์ง๋ง, ๋งค์ฐ ๋์ ํด์๋๋ acc gain์ด ๋จ์ด์ง๋ ๊ฒ์ผ๋ก ์ฐ๊ตฌ ๊ฒฐ๊ณผ๊ฐ ๋์ ์๋ค.
๐ filter ์, network depth๋ฅผ ์ผ์ ์์ค ์ด์ ๋๋ ค๋ ์ฑ๋ฅ ํฅ์์ด ๋ฏธ๋นํ๋ค. Resolution ๊ฒฝ์ฐ ์ฑ๋ฅ ํฅ์์ด ์ง์๋จ
imagenet dataset ๊ธฐ์ค 80% ์ ํ๋์์ ๊ฐ๋ณ scaling ์์๋ฅผ ์ฆ๊ฐ ์ํค๋๋ผ๋ ์ฑ๋ฅ ํฅ์์ด ์ด๋ ค์.
โ๏ธ Compound Scaling
- Image ํด์๋๊ฐ ๋์ ๊ฒฝ์ฐ, ๋ ํฐ Receptive Field๊ฐ ๋ ๋ง์ Pixel์ ํฌํจํ๋ ๋น์ทํ Feature๋ฅผ ์ Capture ํจ.
- ๋ ๋ง์ Pixel ์๋ฅผ ๊ฐ์ง๋ฉด ๋์ ์ด๋ฏธ์ง ํด์๋์ ๋ง์ ํฝ์ ๋ค์ ๋ํด์ ์ธ๋ฐํ ํจํด์ ์ Capture ํ ์ ์์.
- depth + resolution์ ๊ฐ๊ฐ 1.0์ผ๋ก ๊ณ ์ , width๋ง ์ฆ๊ฐํ๊ฒ ๋๋ฉด acc ์ฑ๋ฅ 80% ์๋ ด
(๊ฐ๊ฐ 2.0์ผ๋ก ๊ณ ์ ํ๊ณ , width๋ง ๋ณํ ์, ๋น์ทํ FLOPS์์์ ๋ ๋์ ์ฑ๋ฅ ํฅ์์ด ๋๋ค.)
๐ Receptive Field(์์ฉ์์ญ, ์์ฉ์ฅ)์ output layer์ ๋ด๋ฐ ํ๋์ ์ํฅ์ ๋ฏธ์น๋ input ๋ด๋ฐ๋ค์ ๊ณต๊ฐ ํฌ๊ธฐ
// ์ฐธ๊ณ ์๋ฃ
๐ https://lynnshin.tistory.com/13
EfficientNet ๋ชจ๋ธ ๊ตฌ์กฐ
EfficientNet ์ ๋ฆฌ ๊ธ : [AI Research Paper Review/More] - EfficientNet ์ ๋ฆฌ EfficientNet ์ ๋ฆฌ ์ด์ ๊ธ : [AI/Self-Study] - EfficientNet ๋ชจ๋ธ ๊ตฌ์กฐ EfficientNet ๋ชจ๋ธ ๊ตฌ์กฐ EfficientNet - B0 baseline ๋คํธ์ํฌ ๊ตฌ์กฐ EfficientNet B0 ์ ์ฒด
lynnshin.tistory.com
'Deep Learning > Network' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ResNet - Network ๊ตฌ์กฐ ๋ฐ ๊ตฌํ (0) | 2023.02.23 |
---|---|
VGGNet16 - Network ๊ตฌ์กฐ ๋ฐ ๊ตฌํ (0) | 2023.02.23 |