biubug6 / Face-Detector-1MB-with-landmark

1M人脸检测模型(含关键点)
MIT License
1.03k stars 271 forks source link

Vertical screen big face easy to get wrong face location #6

Closed wqvbjhc closed 4 years ago

wqvbjhc commented 4 years ago

src image 1person_2

result img test

why?

the command as follow: python detect.py --network mobile0.25 --trained_model ./weights/mobilenet0.25_Final.pth or python detect.py --network RFB --trained_model ./weights/RBF_Final.pth or python detect.py --network slim --trained_model ./weights/slim_Final.pth are the same wrong result.

biubug6 commented 4 years ago

Because of small anchor size, it is hard to detect large face(such as face larger than 512). You can scale long side of image to 640 or 320 to get a better result which also gets a faster speed.

wqvbjhc commented 4 years ago

in the detect.py, the long_side default is 640. so it had scale long side of image to 640.

biubug6 commented 4 years ago

You should change origin_size to False in "parser.add_argument('--origin_size', default=True, type=str, help='Whether use origin image size to evaluate') ".

wqvbjhc commented 4 years ago

@biubug6 got it. when origin_size=false and long_sid=640. it's good to detect only one face.