yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.95k stars 947 forks source link

Images other than classic dataset image gives (out of memory error) #2

Closed subrakanthsutar closed 6 years ago

subrakanthsutar commented 6 years ago

Hi,

came across the out of memory Error when trying to input other images(other than classic dataset images). Is the image size anyway related to the error?

thank you.

issue

yfeng95 commented 6 years ago

Yes, it is because of the image size.

Dlib is used for detecting face if you don't provide the bounding box information, it occurs error if the image size is large(about >1000).

There are two ways you can solve the problem:

  1. scale your image into a smaller size.
  2. provide the bounding box information yourself with other detectors (highly recommended if convenience, since dlib is not so accurate)

Thanks for your reporting, I will add the check codes in case of further errors. : )