pytorch

Pytorch 09) - Transfer Learning

Pytorch - 09) Transfer Learning ## Transfer Learning ๊ธฐ์กด์— ๋งŒ๋“ค์–ด์ง„ ๋ชจ๋ธ์„ ์ด์šฉํ•˜์—ฌ, ์ƒˆ๋กœ์šด ๋ชจ๋ธ์ด ์กฐ๊ธˆ๋” ๋น ๋ฅด๊ฒŒ ํ•™์Šตํ•˜๊ณ  ์˜ˆ์ธก์„ ๋” ๋†’์ด๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. ์‹ค์งˆ์ ์œผ๋กœ, CNN์„ ์ฒ˜์Œ๋ถ€ํ„ฐ ํ•™์Šต์‹œํ‚ค๋Š” ์ผ์€ ๋งŽ์ง€ ์•Š๋‹ค. ์ด ๋ชจ๋ธ์€ ๊ณ ๋ คํ•ด์•ผํ•  ์‚ฌํ•ญ์ด ๋งŽ๊ณ , (Layer์˜ ์ˆซ์ž, ํ™œ์„ฑํ™”ํ•จ์ˆ˜์˜ ์ข…๋ฅ˜, ๊ธฐํƒ€ hyper par...

Read
pytorch python

Pytorch 08) - CIFAR 10 ํ•™์Šต

Pytorch - 08) CIFAR 10 CIFAR 10 ๋Š” ์—ด๊ฐ€์ง€ ๋‹จ์–ด๋ณ„ ์ด๋ฏธ์ง€๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ์…‹์ด๋‹ค. ๊ธฐ์กด์— ์†๊ธ€์”จ๋ฅผ ๋ถ„๋ฅ˜ํ•˜๋Š” ๊ฒƒ ๋ณด๋‹ค๋Š” ํ™•์‹คํžˆ ์–ด๋ ค์šด ์ž‘์—…์ด ๋  ๊ฒƒ์ด๋‹ค. ![CIFAR10](../images/CIFAR10.png) ## ์ „์ฒ˜๋ฆฌ ์ž‘์—… ```python import torch import matplotlib.py...

Read
pytorch python

Pytorch 07) - Convolutional Neural Network (2)

Pytorch - 07) Convolutional Neural Network (2) ์ด๋ฒˆ์—๋Š” ์ฝ”๋“œ๋กœ ๊ตฌํ˜„ํ•ด๋ณด์ž. ```python class LeNet(nn.Module): def __init__(self): super().__init__() # ํ‘๋ฐฑ์ด๋ผ 1์ฑ„๋„, 20๊ฐœ ํŠน์ง• ์ถ”์ถœ, filter ํฌ๊ธฐ, stride 1 se...

Read
pytorch python

Pytorch 06) - Convolutional Neural Network (1)

Pytorch - 06) Convolutional Neural Network (1) ## Convolutional Neural Network (CNN) ### Fully Connected Layer์˜ ๋ฌธ์ œ์  Convolutional Neural Network (์ดํ•˜ CNN)์€ ์ด๋ฏธ์ง€, ๋น„๋””์˜ค, ํ…์ŠคํŠธ, ์‚ฌ์šด๋“œ๋ฅผ ๋ถ„๋ฅ˜ํ•˜๋Š” ๋”ฅ๋Ÿฌ๋‹์—์„œ ๊ฐ€์žฅ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ...

Read
pytorch python

Pytorch 05) - Image Recognition

Pytorch - 05) Image Recognition ๋งˆ์ง€๋ง‰์œผ๋ฃจ๋‹ค๊ฐ€ ์†๊ธ€์”จ ๋ถ„๋ฅ˜ํ•ด๋ณด๋Š” ์‹ค์Šต์„ ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ### Dataset ```python import torch import matplotlib.pyplot as plt import numpy as np from torch import nn from torch.nn import functi...

Read