Update app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,11 @@ os.system("git clone https://github.com/NVlabs/stylegan2-ada-pytorch.git")
|
|
| 16 |
|
| 17 |
# In[3]:
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
import sys
|
| 21 |
sys.path.append('/content/stylegan2-ada-pytorch')
|
|
|
|
| 16 |
|
| 17 |
# In[3]:
|
| 18 |
|
| 19 |
+
import urllib.request
|
| 20 |
+
|
| 21 |
+
pkl_url = "https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada/pretrained/ffhq.pkl"
|
| 22 |
+
pkl_path = "stylegan2-ffhq-512x512.pkl"
|
| 23 |
+
urllib.request.urlretrieve(pkl_url, pkl_path)
|
| 24 |
|
| 25 |
import sys
|
| 26 |
sys.path.append('/content/stylegan2-ada-pytorch')
|