cbensimon HF staff commited on
Commit
8a7ab73
·
1 Parent(s): 17cb182

local_dir_use_symlinks=False

Browse files
Files changed (1) hide show
  1. app.py +23 -8
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(repo_id='camenduru/PASD', local_dir='PASD/runs', allow_patterns=[
8
- 'pasd/**',
9
- 'pasd_light/**',
10
- 'pasd_light_rrdb/**',
11
- 'pasd_rrdb/**',
12
- ])
13
- huggingface_hub.hf_hub_download(repo_id='camenduru/PASD', local_dir='PASD/checkpoints/personalized_models', filename='majicmixRealistic_v6.safetensors')
14
- huggingface_hub.hf_hub_download(repo_id='akhaliq/RetinaFace-R50', local_dir='PASD/annotator/ckpts', filename='RetinaFace-R50.pth')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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