Update app.py
Browse files
app.py
CHANGED
@@ -373,7 +373,7 @@ def predict(inp):
|
|
373 |
periods_classification = periods_model(image_tensor.unsqueeze(0))
|
374 |
recon_tensor = reconstruction[0].repeat(3, 1, 1)
|
375 |
recon_tensor = invTrans(kornia.enhance.invert(recon_tensor))
|
376 |
-
plot_recon = recon_tensor.permute(1, 2, 0).detach().numpy()
|
377 |
w, h = inp.size
|
378 |
# plot_recon = resize(plot_recon, (h, w))
|
379 |
m = nn.Sigmoid()
|
|
|
373 |
periods_classification = periods_model(image_tensor.unsqueeze(0))
|
374 |
recon_tensor = reconstruction[0].repeat(3, 1, 1)
|
375 |
recon_tensor = invTrans(kornia.enhance.invert(recon_tensor))
|
376 |
+
plot_recon = recon_tensor.permute(1, 2, 0).detach().cpu().numpy()
|
377 |
w, h = inp.size
|
378 |
# plot_recon = resize(plot_recon, (h, w))
|
379 |
m = nn.Sigmoid()
|