ZeyuXie commited on
Commit
ccb7c0b
·
verified ·
1 Parent(s): 0faef57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ class InferRunner:
19
  def __init__(self, device):
20
  vae_config = json.load(open("ckpts/ldm/vae_config.json"))
21
  self.vae = AutoencoderKL(**vae_config).to(device)
22
- # vae_weights = torch.load("ckpts/ldm/pytorch_model_vae.bin", map_location=device)
23
- # self.vae.load_state_dict(vae_weights)
24
 
25
  train_args = dotdict(json.loads(open("ckpts/pico_model/summary.jsonl").readlines()[0]))
26
  self.pico_model = PicoDiffusion(
 
19
  def __init__(self, device):
20
  vae_config = json.load(open("ckpts/ldm/vae_config.json"))
21
  self.vae = AutoencoderKL(**vae_config).to(device)
22
+ vae_weights = torch.load("ckpts/ldm/pytorch_model_vae.bin", map_location=device)
23
+ self.vae.load_state_dict(vae_weights)
24
 
25
  train_args = dotdict(json.loads(open("ckpts/pico_model/summary.jsonl").readlines()[0]))
26
  self.pico_model = PicoDiffusion(