CSE 5524: �Object detection and segmentation
1
Homework and quiz plan
Final project (20 – 30%)
Project first glance
Today
5
Convolutional neural networks (CNN) for detection
6
Convolutional neural networks (CNN)
7
Shared weights
Vectorization + FC layers
Max pooling + down-sampling
Receptive field
8
Linear receptive field
Exponential receptive field
(with pooling + down-sampling)
Layers of feature maps (representations)
9
What does a large response at each layer/channel mean?
Short summary
A general architecture of CNN or visual transformers involves
10
Popular CNN architectures
11
Popular CNN architectures
12
Popular CNN architectures
13
Today
14
Exemplar computer vision tasks
[C. Rieke, 2019]
Exemplar computer vision tasks
Retrieval, representation learning
Image generation
Vision and language
Neural Radiance Fields (NeRF)
Object-centric vs. scene-centric images
17
Object-centric images:
Scene-centric images:
ImageNet [image-level label]:
MSCOCO [instance segment]:
Classification on object-centric images
car
elephant
Representative 2D recognition tasks
19
Dog
Cat
Horse
Sheep
W
H
a)
c)
b)
d)
Object- vs. scene centric images
20
MSCOCO [scene-centric]:
ImageNet [object-centric]:
Object- vs. scene centric images
21
Semantic segmentation
22
New architecture?
23
Single spatial output!
Fully-convolutional network (FCN)
24
|
|
|
|
|
|
|
|
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
CNN
| | |
| | |
| | |
Feature map
Vector after vectorization
Dog
Cat
Boat
Bird
Matrix multiplication, inner product
Fully-convolutional network (FCN)
25
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
CNN
| | |
| | |
| | |
Dog
Cat
Boat
Bird
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
Each row = a Conv filter
Feature map
Fully-convolutional network (FCN)
26
[Long et al., Fully Convolutional Networks for Semantic Segmentation, CVPR 2015]
Up-sampling
27
Interpolation
Deconvolution
Fully-convolutional network (FCN)
28
Help localization
Help
context + semantics
[Long et al., Fully Convolutional Networks for Semantic Segmentation, CVPR 2015]
U-Net
29
Help localization
Help
context + semantics
[Ronneberger et al., U-Net: Convolutional Networks for Biomedical Image Segmentation, MICCAI 2015]
U-Net (aka, Hourglass network)
30
Dilated (Atrous) convolution
Exponential receptive field:�w/o down-sampling + up-sampling
w/ same # of parameters to learn
CRF to improve localization
32
CRF: similar and nearby pixels have the same class label
[Chen et al., DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs, PAMI 2017]
Atrous Spatial Pyramid Pooling (ASPP)�for multi-scale features
33
Example results
34
[Nirkin et al., HyperSeg, 2021]
Ground truth
[Zhao et al., Pyramid scene parsing network, 2017]
Today
35
Object detection
36
[class, u-center, v-center, width, height]
Naïve way
37
ResNet classifier
R-CNN
38
[Girshick et al., Rich feature hierarchies for accurate object detection and semantic segmentation, CVPR 2014]
Selective search for proposal generation
39
[Stanford CS 231b]
R-CNN
40
[Girshick et al., Rich feature hierarchies for accurate object detection and semantic segmentation, CVPR 2014]
[Girshick, CVPR 2019 tutorial]
R-CNN
By offset = MLP(feature)
41
Proposal
Ground truth
R-CNN
42
Fast R-CNN
43
ROI pooling
[Girshick, CVPR 2019 tutorial]
[Girshick, Fast R-CNN, ICCV 2015]
ROI pooling vs. ROI align
44
ROI Align
ROI Pooling
Making features extracted from different proposals the same size!
Faster R-CNN
45
ROI pooling
[Girshick, CVPR 2019 tutorial]
[Ren et al., Faster r-cnn: Towards real-time object detection with region proposal networks, NIPS 2015]
How to develop RPN�(region proposal network)?
46
5 * 8 * K * (2 + 4)
[Ren et al., 2015]
Ground truth
Anchor
What do we learn from RPN?
47
Questions?
How to deal with object sizes?
49
[Lin et al., Feature Pyramid Networks for Object Detection, CVPR 2017]
Mask R-CNN
50
[Girshick, CVPR 2019 tutorial]
[He et al., Mask r-cnn, ICCV 2017]
Mask R-CNN: for instance segmentation
51
CNN: convolutional neural network
RPN: region proposal network
Bulldozer: 80%
Bus: 15%
Motorcycle: 5%
2-stage vs. 1-stage detectors
52
[Redmon et al., 2016]
2-stage detector
1-stage detector
Exemplar 1-stage detectors
53
[Liu et al., 2016]
SSD
YOLO
[Redmon et al., 2016]
Exemplar 1-stage detectors (Retina Net)
54
[Lin et al., 2017]
2-stage vs. 1-stage detectors
55
[Redmon et al., 2016]
Inference: choose few from many
56
[Pictures from “towards data science” post]
Example results
57
[Zhang, et al., 2021]
New approach to object detection
New approach to object detection
Key names
Take home
61
LiDAR-based 3D perception
LiDAR-based 3D perception
63
[Source: Graham Murdoch/Popular Science]
LiDAR:
LiDAR-based 3D perception
You can view the LiDAR point clouds from different angles
64
Frontal view
Bird’s-eye view (BEV)
Two major ways to process LiDAR point clouds
65
Voxel-based processing + 3D object detectors
66
[Yang et al., PIXOR: Real-time 3D Object Detection from Point Clouds, 2019]
height
depth
Left-right