Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
c6cec0e
1
Parent(s):
8d36ff5
Update app.py
Browse files
app.py
CHANGED
@@ -165,10 +165,13 @@ def inference(text,steps,image,mode):
|
|
165 |
writer.close()
|
166 |
return pil_image, "test.mp4"
|
167 |
else:
|
168 |
-
os.system("python
|
|
|
|
|
169 |
--network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl")
|
170 |
img = Image.new("RGB", (800, 1280), (255, 255, 255))
|
171 |
-
|
|
|
172 |
|
173 |
|
174 |
title = "StyleGAN3+CLIP"
|
|
|
165 |
writer.close()
|
166 |
return pil_image, "test.mp4"
|
167 |
else:
|
168 |
+
os.system("python gen_images.py --outdir=out --trunc=1 --seeds=2 \
|
169 |
+
--network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl")
|
170 |
+
os.system("python gen_video.py --output=lerp.mp4 --trunc=1 --seeds=0-10 --grid=1x1 \
|
171 |
--network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl")
|
172 |
img = Image.new("RGB", (800, 1280), (255, 255, 255))
|
173 |
+
out = Image.open("out/2.png")
|
174 |
+
return out, "lerp.mp4"
|
175 |
|
176 |
|
177 |
title = "StyleGAN3+CLIP"
|