wjs0725 commited on
Commit
1ff7a16
·
verified ·
1 Parent(s): 566e04b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -38,6 +38,8 @@ def encode(init_image, torch_device, ae):
38
  init_image = torch.from_numpy(init_image).permute(2, 0, 1).float() / 127.5 - 1
39
  init_image = init_image.unsqueeze(0)
40
  init_image = init_image.to(torch_device)
 
 
41
  with torch.no_grad():
42
  init_image = ae.encode(init_image.to()).to(torch.bfloat16)
43
  return init_image
 
38
  init_image = torch.from_numpy(init_image).permute(2, 0, 1).float() / 127.5 - 1
39
  init_image = init_image.unsqueeze(0)
40
  init_image = init_image.to(torch_device)
41
+ print("!!!!!!!init_image!!!!!!!",init_image.shape)
42
+ print("!!!!!!!ae!!!!!!!",ae.shape)
43
  with torch.no_grad():
44
  init_image = ae.encode(init_image.to()).to(torch.bfloat16)
45
  return init_image