shaoanlu / fewshot-face-translation-GAN

Generative adversarial networks integrating modules from FUNIT and SPADE for face-swapping.
793 stars 130 forks source link

Preprocess for build_inceptionresnetv1 #16

Open Vandmoon opened 5 years ago

Vandmoon commented 5 years ago

Just a reminder: The current implementation of build_inceptionresnetv1 in dev branch seems problematic, althrough not finished yet, since the input of the FaceVerifier(extractor="facenet", classes=512) is assumed to be an image of 0~255 uint8 values, while all the input images within models.py are preprocessed to be within -1~+1. The images should be rescaled back to 0~255 similar to the function build_hybrid_ir50s.