Skip to content

Commit

Permalink
refactor: Updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fg-mindee committed Dec 23, 2021
1 parent 3a08407 commit fbda1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():

# Forward the image to the model
processed_batches = predictor.det_predictor.pre_processor([doc[page_idx]])
out = predictor.det_predictor.model(processed_batches[0], return_model_output=True)
out = predictor.det_predictor.model(processed_batches[0], return_preds=True)
seg_map = out["out_map"]
seg_map = tf.squeeze(seg_map[0, ...], axis=[2])
seg_map = cv2.resize(seg_map.numpy(), (doc[page_idx].shape[1], doc[page_idx].shape[0]),
Expand Down

0 comments on commit fbda1ac

Please sign in to comment.