diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:34:24 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:36:47 +0800 |
commit | f075fde91e6e5e7ac5d0f146df9cfde2b22fa150 (patch) | |
tree | f5c86dff6086ab8316a1f371585a0fab191aefa4 /preprocess.py | |
parent | 31af04b70fcc0e7b46cbe18a52d150eb4e274f0e (diff) | |
parent | 84a3d5991f2f7272d1be54ad6cfe6ce695f915a0 (diff) |
Merge branch 'master' into python3.8
Diffstat (limited to 'preprocess.py')
-rw-r--r-- | preprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/preprocess.py b/preprocess.py index 894c7c1..eef59ba 100644 --- a/preprocess.py +++ b/preprocess.py @@ -52,7 +52,7 @@ def result_handler(frame_: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: mask_x1 = (mask_xc + mask_half_width).ceil().int() # Skip incomplete frames - if (height < 64 or width < 64 / MASK_BOX_RATIO) \ + if (height < 64 or width < 64 / BOX_RATIO_THRESHOLD[1]) \ or (mask_x0 < 0 or mask_x1 > 320) \ or (mask_y0 < 0 or mask_y1 > 240): continue |