2023-05-26 18:29:17 +01:00
|
|
|
## Before 2010s
|
|
|
|
- Data hungry
|
|
|
|
- Need lots of training data
|
|
|
|
- Processing power
|
|
|
|
- Niche
|
|
|
|
- No-one cared/knew about CNNs
|
|
|
|
## After
|
2023-05-31 17:33:05 +01:00
|
|
|
- [[Datasets#ImageNet|ImageNet]]
|
2023-05-26 18:29:17 +01:00
|
|
|
- 16m images, 1000 classes
|
|
|
|
- GPUs
|
|
|
|
- General processing GPUs
|
|
|
|
- CUDA
|
|
|
|
- NIPS/ECCV 2012
|
2023-05-31 17:33:05 +01:00
|
|
|
- Double digit % gain on [[Datasets#ImageNet|ImageNet]] accuracy
|
2023-05-26 18:29:17 +01:00
|
|
|
|
|
|
|
# Full Connected
|
2023-05-27 00:50:46 +01:00
|
|
|
[[MLP|Dense]]
|
2023-05-27 23:02:51 +01:00
|
|
|
- Move from [[Convolutional Layer|convolutional]] operations towards vector output
|
2023-05-26 18:29:17 +01:00
|
|
|
- Stochastic drop-out
|
2023-05-27 00:50:46 +01:00
|
|
|
- Sub-sample channels and only connect some to [[MLP|dense]] layers
|
2023-05-26 18:29:17 +01:00
|
|
|
|
|
|
|
# As a Descriptor
|
|
|
|
- Most powerful as a deeply learned feature extractor
|
2023-05-27 00:50:46 +01:00
|
|
|
- [[MLP|Dense]] classifier at the end isn't fantastic
|
2023-05-26 18:29:17 +01:00
|
|
|
- Use SVM to classify prior to penultimate layer
|
|
|
|
|
|
|
|
![[cnn-descriptor.png]]
|
|
|
|
|
|
|
|
# Finetuning
|
|
|
|
- Observations
|
2023-05-27 23:02:51 +01:00
|
|
|
- Most CNNs have similar weights in [[Convolutional Layer|conv1]]
|
|
|
|
- Most useful CNNs have several [[Convolutional Layer|conv layers]]
|
2023-05-26 18:29:17 +01:00
|
|
|
- Many weights
|
|
|
|
- Lots of training data
|
|
|
|
- Training data is hard to get
|
|
|
|
- Labelling
|
|
|
|
- Reuse weights from other network
|
2023-05-27 23:02:51 +01:00
|
|
|
- Freeze weights in first 3-5 [[Convolutional Layer|conv layers]]
|
2023-05-26 18:29:17 +01:00
|
|
|
- Learning rate = 0
|
|
|
|
- Randomly initialise remaining layers
|
|
|
|
- Continue with existing weights
|
|
|
|
|
|
|
|
![[fine-tuning-freezing.png]]
|
|
|
|
# Training
|
2023-05-27 00:50:46 +01:00
|
|
|
- Validation & training [[Deep Learning#Loss Function|loss]]
|
2023-05-26 18:29:17 +01:00
|
|
|
- Early
|
|
|
|
- Under-fitting
|
|
|
|
- Training not representative
|
|
|
|
- Later
|
|
|
|
- Overfitting
|
2023-05-27 00:50:46 +01:00
|
|
|
- V.[[Deep Learning#Loss Function|loss]] can help adjust learning rate
|
2023-05-26 18:29:17 +01:00
|
|
|
- Or indicate when to stop training
|
|
|
|
|
|
|
|
![[under-over-fitting.png]]
|