Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ocrs/src/detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ impl TextDetector {

let text_mask: Tensor<f32> = self.model.run(image.view(), Some(opts))?;

// Resize probability mask to original input size and apply threshold to get a
// binary text/not-text mask.
// Resize probability mask to original input size.
let text_mask = text_mask
.slice((
..,
Expand Down
Loading