local_dir_use_symlinks=False
Browse files
app.py
CHANGED
@@ -4,14 +4,29 @@ torch.cuda.get_device_capability = lambda *args, **kwargs: (8, 6)
|
|
4 |
torch.cuda.get_device_properties = lambda *args, **kwargs: types.SimpleNamespace(name='NVIDIA A10G', major=8, minor=6, total_memory=23836033024, multi_processor_count=80)
|
5 |
|
6 |
import huggingface_hub
|
7 |
-
huggingface_hub.snapshot_download(
|
8 |
-
'
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
import sys; sys.path.append('./PASD')
|
17 |
import spaces
|
|
|
4 |
torch.cuda.get_device_properties = lambda *args, **kwargs: types.SimpleNamespace(name='NVIDIA A10G', major=8, minor=6, total_memory=23836033024, multi_processor_count=80)
|
5 |
|
6 |
import huggingface_hub
|
7 |
+
huggingface_hub.snapshot_download(
|
8 |
+
repo_id='camenduru/PASD',
|
9 |
+
allow_patterns=[
|
10 |
+
'pasd/**',
|
11 |
+
'pasd_light/**',
|
12 |
+
'pasd_light_rrdb/**',
|
13 |
+
'pasd_rrdb/**',
|
14 |
+
],
|
15 |
+
local_dir='PASD/runs',
|
16 |
+
local_dir_use_symlinks=False,
|
17 |
+
)
|
18 |
+
huggingface_hub.hf_hub_download(
|
19 |
+
repo_id='camenduru/PASD',
|
20 |
+
filename='majicmixRealistic_v6.safetensors',
|
21 |
+
local_dir='PASD/checkpoints/personalized_models',
|
22 |
+
local_dir_use_symlinks=False,
|
23 |
+
)
|
24 |
+
huggingface_hub.hf_hub_download(
|
25 |
+
repo_id='akhaliq/RetinaFace-R50',
|
26 |
+
filename='RetinaFace-R50.pth',
|
27 |
+
local_dir='PASD/annotator/ckpts',
|
28 |
+
local_dir_use_symlinks=False,
|
29 |
+
)
|
30 |
|
31 |
import sys; sys.path.append('./PASD')
|
32 |
import spaces
|