File downloads
Browse files
app.py
CHANGED
@@ -3,6 +3,15 @@ import types
|
|
3 |
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 sys; sys.path.append('./PASD')
|
7 |
import spaces
|
8 |
import os
|
@@ -38,7 +47,7 @@ else:
|
|
38 |
from models.pasd.unet_2d_condition import UNet2DConditionModel
|
39 |
from models.pasd.controlnet import ControlNetModel
|
40 |
|
41 |
-
pretrained_model_path = "
|
42 |
ckpt_path = "runs/pasd/checkpoint-100000"
|
43 |
#dreambooth_lora_path = "checkpoints/personalized_models/toonyou_beta3.safetensors"
|
44 |
dreambooth_lora_path = "checkpoints/personalized_models/majicmixRealistic_v6.safetensors"
|
|
|
3 |
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 |
+
|
15 |
import sys; sys.path.append('./PASD')
|
16 |
import spaces
|
17 |
import os
|
|
|
47 |
from models.pasd.unet_2d_condition import UNet2DConditionModel
|
48 |
from models.pasd.controlnet import ControlNetModel
|
49 |
|
50 |
+
pretrained_model_path = "runwayml/stable-diffusion-v1-5"
|
51 |
ckpt_path = "runs/pasd/checkpoint-100000"
|
52 |
#dreambooth_lora_path = "checkpoints/personalized_models/toonyou_beta3.safetensors"
|
53 |
dreambooth_lora_path = "checkpoints/personalized_models/majicmixRealistic_v6.safetensors"
|