Spaces:
Running
on
Zero
Running
on
Zero
Update toonmage/fluxpipeline.py
Browse files- toonmage/fluxpipeline.py +2 -2
toonmage/fluxpipeline.py
CHANGED
@@ -84,8 +84,8 @@ class ToonMagePipeline(nn.Module):
|
|
84 |
self.debug_img_list = []
|
85 |
|
86 |
def load_pretrain(self, pretrain_path=None):
|
87 |
-
hf_hub_download('SunderAli17/SAK', 'toonmage_flux_v2.safetensors')
|
88 |
-
ckpt_path = 'toonmage_flux_v2.safetensors'
|
89 |
if pretrain_path is not None:
|
90 |
ckpt_path = pretrain_path
|
91 |
state_dict = load_file(ckpt_path)
|
|
|
84 |
self.debug_img_list = []
|
85 |
|
86 |
def load_pretrain(self, pretrain_path=None):
|
87 |
+
hf_hub_download('SunderAli17/SAK', 'toonmage_flux_v2.safetensors', local_dir ='models')
|
88 |
+
ckpt_path = 'models/toonmage_flux_v2.safetensors'
|
89 |
if pretrain_path is not None:
|
90 |
ckpt_path = pretrain_path
|
91 |
state_dict = load_file(ckpt_path)
|