Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ def infer():
|
|
| 116 |
model = raft_large(weights=Raft_Large_Weights.DEFAULT, progress=False).to(device)
|
| 117 |
model = model.eval()
|
| 118 |
|
| 119 |
-
list_of_flows = model(
|
| 120 |
print(f"list_of_flows type = {type(list_of_flows)}")
|
| 121 |
print(f"list_of_flows length = {len(list_of_flows)} = number of iterations of the model")
|
| 122 |
|
|
|
|
| 116 |
model = raft_large(weights=Raft_Large_Weights.DEFAULT, progress=False).to(device)
|
| 117 |
model = model.eval()
|
| 118 |
|
| 119 |
+
list_of_flows = model(img1_batch.to(device), img2_batch.to(device))
|
| 120 |
print(f"list_of_flows type = {type(list_of_flows)}")
|
| 121 |
print(f"list_of_flows length = {len(list_of_flows)} = number of iterations of the model")
|
| 122 |
|