wjs0725 commited on
Commit
329e5e6
·
verified ·
1 Parent(s): 1ff7a16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +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
- 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
 
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.device)
42
+ print("!!!!!!!ae!!!!!!!",ae.device)
43
  with torch.no_grad():
44
  init_image = ae.encode(init_image.to()).to(torch.bfloat16)
45
  return init_image