CSE 5539: �Computer Vision
Representative 2D recognition tasks
2
Dog
Cat
Horse
Sheep
W
H
a)
c)
b)
d)
Semantic segmentation
3
U-Net
4
Help localization
Help
context + semantics
[Ronneberger et al., U-Net: Convolutional Networks for Biomedical Image Segmentation, MICCAI 2015]
Today
Object detection
6
[class, u-center, v-center, width, height]
Naïve way
7
ResNet classifier
R-CNN
8
[Girshick et al., Rich feature hierarchies for accurate object detection and semantic segmentation, CVPR 2014]
Selective search for proposal generation
9
[Stanford CS 231b]
R-CNN
10
[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)
11
Proposal
Ground truth
R-CNN
12
Fast R-CNN
13
ROI pooling
[Girshick, CVPR 2019 tutorial]
[Girshick, Fast R-CNN, ICCV 2015]
ROI pooling vs. ROI align
14
ROI Align
ROI Pooling
Making features extracted from different proposals the same size!
Faster R-CNN
15
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)?
16
5 * 8 * K * (2 + 4)
[Ren et al., 2015]
Ground truth
Anchor
What do we learn from RPN?
17
Questions?
How to deal with object sizes?
19
[Lin et al., Feature Pyramid Networks for Object Detection, CVPR 2017]
Mask R-CNN
20
[Girshick, CVPR 2019 tutorial]
[He et al., Mask r-cnn, ICCV 2017]
Mask R-CNN: for instance segmentation
21
CNN: convolutional neural network
RPN: region proposal network
Bulldozer: 80%
Bus: 15%
Motorcycle: 5%
2-stage vs. 1-stage detectors
22
[Redmon et al., 2016]
2-stage detector
1-stage detector
Exemplar 1-stage detectors
23
[Liu et al., 2016]
SSD
YOLO
[Redmon et al., 2016]
Exemplar 1-stage detectors (Retina Net)
24
[Lin et al., 2017]
2-stage vs. 1-stage detectors
25
[Redmon et al., 2016]
Inference: choose few from many
26
[Pictures from “towards data science” post]
Example results
27
[Zhang, et al., 2021]
New approach to object detection
New approach to object detection
Key names
Take home
31
Today
Generative models
33
Generative models
image
Easily samplable distribution
[Credits: Tutorial on Diffusion Models]
What and how to learn?
35
Generative adversarial net (GAN)
36
Generator
Discriminator
REAL
FAKE
[Credits: Mengdi Fan and Xinyu Zhou, CSE 5539 course presentation]
Example results (by Style-GAN)
37
[A Style-Based Generator Architecture for Generative Adversarial Networks, CVPR 2019]
Other generative models
38
Diffusion by simple Gaussian
Denoising by neural networks (each step by a U-net!)
[Denoising Diffusion Probabilistic Models, NeurIPS 2020]
Other generative models
39
[Denoising Diffusion Probabilistic Models, NeurIPS 2020]
Other generative models
40
Big-GAN
Diffusion models
Real
[Diffusion Models Beat GANs on Image Synthesis, NeurIPS 2021]
Conditional image generation
41
[Zhu et al., 2017]
[Wang et al., 2018]
Conditional image generation
42
[Hierarchical Text-Conditional Image Generation with CLIP Latents, arXiv 2022]
Today
“Some” challenges in DL for CV
44
Recent success in computer vision
[He et al, 2016]
[He et al, 2017]
Challenge-1: Insufficient (labeled) data
46
“Top 5” error
It’s hard to collect labeled data
47
Fine-grained classes
[Credits: Rogerio Feris, ICCV-2019 slides]
Long-tailed distribution
49
Objects in SUN datasets
Collecting dense labels is even harder
50
[He et al, 2017]
Collecting dense labels is even harder
[Krishna et al., 2016]
Long-tailed distribution on densely-labeled data
52
Visual Genome
LVIS
Long-tailed distribution
[Liu et al., 2019]
Recap: object- vs. scene centric images
Long-tailed distribution
Today
Challenges-2: Domain Shifts
57
KITTI
(Germany)
Argoverse
(USA)
nuScenes
(USA, Singapore)
Lyft
(USA)
Waymo
(USA)
Mismatch between training/test data
Mismatch between training/test data
product images
ImageNet
web images
Data collection bias
Credits: Rogerio Feris, ICCV-2019 slides
Domain adaptation
61
[Saenko al., 2019]
Domain adversarial training
62
[Credits: Hoffman 2019 ICCV tutorial]
Domain adversarial training
63
Binary classification:�SD: +1
TD: -1
[Credits: Hoffman 2019 ICCV tutorial]
Domain adversarial training
64
Binary classification:�SD: +1
TD: -1
[Credits: Hoffman 2019 ICCV tutorial]
Domain adversarial training
65
[Credits: Hoffman 2019 ICCV tutorial]
Domain adversarial training
66
The devils in the details!
Be aware of trivial solutions or poor convergence
[Credits: Hoffman 2019 ICCV tutorial]
Example results
67
[Tsai et al., CVPR 2018]
Summary of challenges
Problems:
Potential solutions: