Spaces:
Running
on
Zero
Running
on
Zero
Update ootd/inference_ootd_hd.py
Browse files
ootd/inference_ootd_hd.py
CHANGED
@@ -29,6 +29,8 @@ VAE_PATH = "levihsu/ootd"
|
|
29 |
UNET_PATH = "levihsu/ootd"
|
30 |
MODEL_PATH = "levihsu/ootd"
|
31 |
|
|
|
|
|
32 |
class OOTDiffusionHD:
|
33 |
|
34 |
def __init__(self, gpu_id):
|
@@ -42,13 +44,13 @@ class OOTDiffusionHD:
|
|
42 |
|
43 |
unet_garm = UNetGarm2DConditionModel.from_pretrained(
|
44 |
UNET_PATH,
|
45 |
-
subfolder="
|
46 |
torch_dtype=torch.float16,
|
47 |
use_safetensors=True,
|
48 |
)
|
49 |
unet_vton = UNetVton2DConditionModel.from_pretrained(
|
50 |
UNET_PATH,
|
51 |
-
subfolder="
|
52 |
torch_dtype=torch.float16,
|
53 |
use_safetensors=True,
|
54 |
)
|
|
|
29 |
UNET_PATH = "levihsu/ootd"
|
30 |
MODEL_PATH = "levihsu/ootd"
|
31 |
|
32 |
+
# ootd_hd/checkpoint-36000/
|
33 |
+
|
34 |
class OOTDiffusionHD:
|
35 |
|
36 |
def __init__(self, gpu_id):
|
|
|
44 |
|
45 |
unet_garm = UNetGarm2DConditionModel.from_pretrained(
|
46 |
UNET_PATH,
|
47 |
+
subfolder="unet_garm",
|
48 |
torch_dtype=torch.float16,
|
49 |
use_safetensors=True,
|
50 |
)
|
51 |
unet_vton = UNetVton2DConditionModel.from_pretrained(
|
52 |
UNET_PATH,
|
53 |
+
subfolder="unet_vton",
|
54 |
torch_dtype=torch.float16,
|
55 |
use_safetensors=True,
|
56 |
)
|