Skip to content

eunalan/upsampling

Repository files navigation

upsampling

How to run:

  1. Clone the repository with the StyleGAN3 submodule
git clone --recursive https://github.com/eunalan/upsampling.git
  1. Download the stylegan2-ffhq-256x256.pkl pretrained model from https://catalog.ngc.nvidia.com/orgs/nvidia/teams/research/models/stylegan2, and place it in the cloned directory.

  2. Install the required Python packages

pip install -r requirements.txt

Optional: To inject noise into StyleGAN directly, we need to modify the StyleGAN module definitions and the pretrained model we downloaded to use the new module definitons. This modifies the pretrained model file directly, so make a copy if you want to keep the original.

python modify_stylegan.py
mv modified_stylegan2.py stylegan3/training/networks_stylegan2.py
  1. Run the application with Gradio, by default it starts on http://127.0.0.1:7860
gradio main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published