Inference StyleGAN2 on Electron
An Intuitive Approach to inference StyleGAN2
Run requirement.txt for stylegan2_pytorch (in your created virtual environment)
pip install pip install -r requirements.txt
Download and Convert Pretrained Model
run_convert_from_tf.py --input="Path/To/PKL_MODEL" --output="stylegan2_pytorch/pretrained_model"
Install packages
Yarn install and Yarn start
Setup python path using interface in application
You can modify directional latent at stylegan2_pytorch/pretrained_model/modded_dlatents/tag_dirs_cont.pkl
Yarn Package
There is a tutorial notebook in /stylegan2_pytorch folder which demostrate a basic function to Generate and Interpolate Image