Assignment 1
- K - Nearest Neighbor (k - 最近邻分类器)
- Linear classifiers (线性分类器) :SVM,Softmax
- Two - layer neural network (两层神经网络)
- Image Features (图像特征)
Ⅰ. Image Classification : A core task in Computer Vision
- The problem : Semantic Gap (语义鸿沟)
- Challenges : Viewpoint variation (视角变化)
- Challenges : Occlusion (包藏)
- Challenges: Background Clutter (背景混乱)
Ⅱ. Data-driven Approach (数据驱动方法)
- Collect a dataset of images and labels
- Use Machine Learning to train a classifier
- Evaluate the classifier on new images
def train(images, labels):
# Machine Learning!
return model;
def predict(images, labels):
# Use model to predict labels
return test_labels;
First classifier : Nearest Neighbor (近邻分类器)
The function is usually used to memorize all data and labels
def train(images, labels):
# Machine Learning!
return model;
The function is usually used to predict the label of the most similar training image
def predict(images, labels):
# Use model to predict labels
return test_labels;
Example Dateset : CIFAR10
- 10 classes
- 50,000 training images
- 10,000 testing images
Distance Metric to compare images
L