Spaces:
Build error
Build error
Jeremy Hummel
commited on
Commit
·
9c66f40
1
Parent(s):
b78efd3
fixes imports
Browse files- stylegan3/__init__.py +2 -9
- stylegan3/torch_utils/misc.py +1 -1
stylegan3/__init__.py
CHANGED
|
@@ -1,9 +1,2 @@
|
|
| 1 |
-
import
|
| 2 |
-
|
| 3 |
-
sys.path.append("../stylegan3")
|
| 4 |
-
|
| 5 |
-
from dnnlib.util import open_url
|
| 6 |
-
from legacy import load_network_pkl
|
| 7 |
-
|
| 8 |
-
sys.path.remove("../stylegan3")
|
| 9 |
-
|
|
|
|
| 1 |
+
from stylegan3.dnnlib.util import open_url
|
| 2 |
+
from stylegan3.legacy import load_network_pkl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stylegan3/torch_utils/misc.py
CHANGED
|
@@ -11,7 +11,7 @@ import contextlib
|
|
| 11 |
import numpy as np
|
| 12 |
import torch
|
| 13 |
import warnings
|
| 14 |
-
import dnnlib
|
| 15 |
|
| 16 |
#----------------------------------------------------------------------------
|
| 17 |
# Cached construction of constant tensors. Avoids CPU=>GPU copy when the
|
|
|
|
| 11 |
import numpy as np
|
| 12 |
import torch
|
| 13 |
import warnings
|
| 14 |
+
from stylegan3 import dnnlib
|
| 15 |
|
| 16 |
#----------------------------------------------------------------------------
|
| 17 |
# Cached construction of constant tensors. Avoids CPU=>GPU copy when the
|