The Web page project is available at https://wqyai.site/. (Due to expiration of the web server, the website is now not used, please move to https://huggingface.co/spaces/QiyuWu/StyleClip_Demo for a try) Welcome to visit my website to enjoy the fun of editing pictures. 😆
To run the code, you can run the following commands to download the required packages.
conda install --yes -c pytorch pytorch=1.7.1 torchvision
pip install ftfy regex tqdm gdown flask onnx onnxruntime
pip install dlib==19.6.1
The repository uploaded the code used by the front and back end of the web page, but the pre-trained model at runtime was not uploaded. When you run the project code, you need to download the pre-trained model at the link below.
Note: The above model should be downloaded and placed in the Project/notebook/mapper/pretrained
.
File name | Download link |
---|---|
e4e_ffhq_encode.pt | https://drive.google.com/file/d/1cUv_reLE6k3604or78EranS7XzuVMWeO/view?usp=sharing |
stylegan2-ffhq-config-f.pt | https://drive.google.com/file/d/1EM87UquaoQmk17Q8d5kYIAHqu0dkYqdT/view?usp=sharing |
Note: The above model should be downloaded and placed in the Project/pretrained_models
.
python start.py
The code of the project is based on the following code on github.
Here are some good examples of using the Web page.