Spaces:
Sleeping
Sleeping
Vivien Chappelier
commited on
Commit
•
ab4f056
1
Parent(s):
cd4223f
fix models location
Browse files
app.py
CHANGED
@@ -30,10 +30,10 @@ class BZHStableSignatureDemo(object):
|
|
30 |
sd1 = deepcopy(self.pipe.vae.state_dict()) # save initial state dict
|
31 |
self.decoders = decoders = OrderedDict([("no watermark", sd1)])
|
32 |
for name, patched_decoder_ckpt in (
|
33 |
-
("weak", "models/
|
34 |
-
("medium", "models/
|
35 |
-
("strong", "models/
|
36 |
-
("extreme", "models/
|
37 |
sd2 = torch.load(patched_decoder_ckpt)['ldm_decoder']
|
38 |
msg = self.pipe.vae.load_state_dict(sd2, strict=False)
|
39 |
print(f"loaded LDM decoder state_dict with message\n{msg}")
|
|
|
30 |
sd1 = deepcopy(self.pipe.vae.state_dict()) # save initial state dict
|
31 |
self.decoders = decoders = OrderedDict([("no watermark", sd1)])
|
32 |
for name, patched_decoder_ckpt in (
|
33 |
+
("weak", "models/checkpoint_000.pth.50000"),
|
34 |
+
("medium", "models/checkpoint_000.pth.150000"),
|
35 |
+
("strong", "models/checkpoint_000.pth.500000"),
|
36 |
+
("extreme", "models/checkpoint_000.pth.1500000")):
|
37 |
sd2 = torch.load(patched_decoder_ckpt)['ldm_decoder']
|
38 |
msg = self.pipe.vae.load_state_dict(sd2, strict=False)
|
39 |
print(f"loaded LDM decoder state_dict with message\n{msg}")
|