Spaces:
Sleeping
Sleeping
Update
Browse files- dualstylegan.py +1 -1
dualstylegan.py
CHANGED
@@ -15,7 +15,7 @@ import torch
|
|
15 |
import torch.nn as nn
|
16 |
import torchvision.transforms as T
|
17 |
|
18 |
-
if os.
|
19 |
os.system("sed -i '10,17d' DualStyleGAN/model/stylegan/op/fused_act.py")
|
20 |
os.system("sed -i '10,17d' DualStyleGAN/model/stylegan/op/upfirdn2d.py")
|
21 |
|
|
|
15 |
import torch.nn as nn
|
16 |
import torchvision.transforms as T
|
17 |
|
18 |
+
if os.getenv('SYSTEM') == 'spaces':
|
19 |
os.system("sed -i '10,17d' DualStyleGAN/model/stylegan/op/fused_act.py")
|
20 |
os.system("sed -i '10,17d' DualStyleGAN/model/stylegan/op/upfirdn2d.py")
|
21 |
|