Closed wqvbjhc closed 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.
in the detect.py, the long_side default is 640. so it had scale long side of image to 640.
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') ".
@biubug6 got it. when origin_size=false and long_sid=640. it's good to detect only one face.
src image
result img
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.