Skip to content

Commit c6a6e4f

Browse files
committed
add files and comments
1 parent 26a7366 commit c6a6e4f

17 files changed

+1113
-722
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Finding Tiny Faces](https://arxiv.org/abs/1612.04402)
1+
OB# [Finding Tiny Faces](https://arxiv.org/abs/1612.04402)
22
By [Peiyun Hu](https://cs.cmu.edu/~peiyunh), [Deva Ramanan](https://cs.cmu.edu/~deva)
33

44
## Demo
@@ -20,4 +20,7 @@ Download [WIDER FACE](http://mmlab.ie.cuhk.edu.hk/projects/WIDERFace/) and place
2020
- `data/widerface/WIDER_train` (images for training set)
2121

2222
### Training code
23+
24+
We released the results of our clustering in `data/widerface/RefBox_N25_scaled.mat`.
25+
2326
Coming soon.

cluster_rects.m

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
% FILE: cluster_rects.m
2+
%
3+
% This function derive canonical bounding box shapes by applying K-medoid
4+
% clustering on a set of bounding boxes.
5+
%
6+
% INPUT: imdb (dataset)
7+
% N (number of medoids)
8+
% minsz/maxsz (filter out boxes that are either too big or too small)
9+
% vis (whether we visualize the clustering results)
10+
%
11+
% OUTPUT: C (N medoids)
12+
113
function C = cluster_rects(imdb, N, minsz, maxsz, vis)
214
if nargin < 5
315
vis = 0;
@@ -19,7 +31,7 @@
1931
fprintf('Ignored faces smaller than %dx%d, %d bboxes left.\n',minsz(1),minsz(2),numel(idx));
2032

2133
%% subsample for faster clustering
22-
rects = rects(randsample(size(rects,1), min(size(rects,1), 5e4)), :);
34+
rects = rects(randsample(size(rects,1), min(size(rects,1), 1e5)), :);
2335
fprintf('Clustering on %d/%d face bounding boxes.\n', size(rects,1), numel(idx));
2436

2537
%% build kmedoids

0 commit comments

Comments
 (0)