yuval-alaluf / SAM

Official Implementation for "Only a Matter of Style: Age Transformation Using a Style-Based Regression Model" (SIGGRAPH 2021) https://arxiv.org/abs/2102.02754
https://yuval-alaluf.github.io/SAM/
MIT License
632 stars 151 forks source link

Batch align #39

Closed csmit86 closed 2 years ago

csmit86 commented 2 years ago

It took me a while to realize I have to use pre-aligned images. So how do I use align_all_parallel.py to batch align a bunch before running inference?

yuval-alaluf commented 2 years ago

Exactly, as with all inputs into StyleGAN, the images need to be aligned beforehand. You can run align_all_parallel.py on a directory of images to get all the aligned images before running inference.

csmit86 commented 2 years ago

Got it! thnx for the quick reply :)