Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,13 +61,13 @@ if uploaded_file_1 and uploaded_file_2:
|
|
| 61 |
tensor = val_transform(selected_image).unsqueeze(0)
|
| 62 |
|
| 63 |
with torch.no_grad():
|
| 64 |
-
output = model.
|
| 65 |
else:
|
| 66 |
selected_image = image2
|
| 67 |
tensor = val_transform(selected_image).unsqueeze(0)
|
| 68 |
|
| 69 |
with torch.no_grad():
|
| 70 |
-
output = model.
|
| 71 |
|
| 72 |
|
| 73 |
result_image = de_normalize(output.squeeze(0)).permute(1, 2, 0).numpy()
|
|
|
|
| 61 |
tensor = val_transform(selected_image).unsqueeze(0)
|
| 62 |
|
| 63 |
with torch.no_grad():
|
| 64 |
+
output = model.netG_B2A(tensor)
|
| 65 |
else:
|
| 66 |
selected_image = image2
|
| 67 |
tensor = val_transform(selected_image).unsqueeze(0)
|
| 68 |
|
| 69 |
with torch.no_grad():
|
| 70 |
+
output = model.netG_A2B(tensor)
|
| 71 |
|
| 72 |
|
| 73 |
result_image = de_normalize(output.squeeze(0)).permute(1, 2, 0).numpy()
|