人脸对齐(stylegan-encoder)
用dlib对齐人脸,并将图片填充为长高一样的图像
python align_images.py doudou alinged_doudou/
图片转为tfrecord格式(stylegan2)
python dataset_tool.py create_from_images mypicture/ datasets/ffhq
真实图片映射(stylegan2)
python run_projector.py project-real-images --network models/92b0fe539a227cdb6d0fb2833c6a30df_https___nvlabs-fi-cdn.nvidia.com_stylegan2_networks_stylegan2-ffhq-config-f.pkl --dataset=test --data-dir=./datasets
代码github
- stylegan-encoder:https://github.com/pbaylies/stylegan-encoder
- stylegan2:https://github.com/NVlabs/stylegan2
网友评论