# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/dvschultz/stylegan2-ada-pytorch/blob/main/SG2_ADA_PT_to_Rosinality.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + [markdown] id="-rrpitFAG9yV"
# ## Setup

# + id="J8Oql7SOz2Rp"
# !nvidia-smi -L

# + id="p1tJvZaV0X-i"
from google.colab import drive
drive.mount('/content/drive')

# + [markdown] id="ZzahUXOmG6u8"
# ## Installation

# + id="ny8AwNsy0R7I"
# !git clone https://github.com/dvschultz/stylegan2-ada-pytorch/
# !git clone https://github.com/rosinality/stylegan2-pytorch
# !pip install ninja

# + [markdown] id="L7xG6qUQHBmB"
# ## Convert

# + id="JdtO3hfN_4eA"
# %cd /content/stylegan2-ada-pytorch/

# + id="wxlMmoow06dp"
# !python export_weights.py /path/to/pkl /path/to/saved.pt

# + [markdown] id="YF1Qu89_HCyl"
# ## Test

# + id="CafCxRc3AA18"
# %cd /content/stylegan2-pytorch/

# + id="CHMH01S74kc7"
# !python generate.py --size 1024 --pics 20 --ckpt /path/to/saved.pt --truncation 0.5

StarcoderdataJupyterScriptsDedupFiltered