Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,8 @@ def predict(img):
|
|
| 28 |
image_tensor=TF.to_tensor(img).cpu()
|
| 29 |
image_tensor=image_tensor.unsqueeze(0).cuda()
|
| 30 |
ipt=net_c(image_tensor)
|
|
|
|
|
|
|
| 31 |
output_i, output_j=net_i(image_tensor,ipt,prompt=True)
|
| 32 |
output_j_out=[]
|
| 33 |
for i in range(4):
|
|
|
|
| 28 |
image_tensor=TF.to_tensor(img).cpu()
|
| 29 |
image_tensor=image_tensor.unsqueeze(0).cuda()
|
| 30 |
ipt=net_c(image_tensor)
|
| 31 |
+
image_tensor = image_tensor.half()
|
| 32 |
+
ipt = ipt.half()
|
| 33 |
output_i, output_j=net_i(image_tensor,ipt,prompt=True)
|
| 34 |
output_j_out=[]
|
| 35 |
for i in range(4):
|