update code
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def predict(img):
|
|
| 26 |
with torch.no_grad():
|
| 27 |
img=align(img)
|
| 28 |
image_tensor=TF.to_tensor(img).cpu()
|
| 29 |
-
image_tensor=image_tensor.unsqueeze(0).
|
| 30 |
ipt=net_c(image_tensor)
|
| 31 |
image_tensor = image_tensor.half()
|
| 32 |
ipt = ipt.half()
|
|
|
|
| 26 |
with torch.no_grad():
|
| 27 |
img=align(img)
|
| 28 |
image_tensor=TF.to_tensor(img).cpu()
|
| 29 |
+
image_tensor=image_tensor.unsqueeze(0).cpu()
|
| 30 |
ipt=net_c(image_tensor)
|
| 31 |
image_tensor = image_tensor.half()
|
| 32 |
ipt = ipt.half()
|