Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|