Vivien Chappelier commited on
Commit
ab4f056
1 Parent(s): cd4223f

fix models location

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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/stable_signature/checkpoint_000.pth.50000"),
34
- ("medium", "models/stable_signature/checkpoint_000.pth.150000"),
35
- ("strong", "models/stable_signature/checkpoint_000.pth.500000"),
36
- ("extreme", "models/stable_signature/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}")
 
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}")