diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:37:02 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-18 18:37:02 +0800 |
commit | 434f0e706649c68125c782060926ba39307c6cf1 (patch) | |
tree | e5a5f8555567ad20b8c0096eb615ba10306d6120 /preprocess.py | |
parent | 3cc4c018c214c4a0e0fbaaa2996390e66fd8ff2b (diff) | |
parent | f075fde91e6e5e7ac5d0f146df9cfde2b22fa150 (diff) |
Merge branch 'python3.8' into python3.7
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 |