Spaces:
Runtime error
Runtime error
fist version
Browse files
app.py
CHANGED
|
@@ -77,7 +77,8 @@ device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cp
|
|
| 77 |
# base_path =
|
| 78 |
models = dict()
|
| 79 |
for i in ["pokemon", "art-paint", "flowers", "landscapes","obama"]:
|
| 80 |
-
|
|
|
|
| 81 |
models[i] = legacy.load_network_pkl(f)['G_ema']
|
| 82 |
|
| 83 |
|
|
|
|
| 77 |
# base_path =
|
| 78 |
models = dict()
|
| 79 |
for i in ["pokemon", "art-paint", "flowers", "landscapes","obama"]:
|
| 80 |
+
config_file_url = hf_hub_url("ZJW666/Projected_GAN_CLC", filename=i+".pkl")
|
| 81 |
+
with dnnlib.util.open_url(config_file_url) as f:
|
| 82 |
models[i] = legacy.load_network_pkl(f)['G_ema']
|
| 83 |
|
| 84 |
|