summaryrefslogtreecommitdiff
path: root/preprocess.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-18 18:37:13 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-18 18:37:13 +0800
commit5d4a7460597f2829fad04ab9a8157a0999904d44 (patch)
treeca02bc8c46241f39ce806c45d6e47a5672414c84 /preprocess.py
parent5097f32e39ca66723808c21288d0c8698e3e313c (diff)
parent84a3d5991f2f7272d1be54ad6cfe6ce695f915a0 (diff)
Merge branch 'master' into data_parallel
Diffstat (limited to 'preprocess.py')
-rw-r--r--preprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/preprocess.py b/preprocess.py
index 8af58f2..91fa8c2 100644
--- a/preprocess.py
+++ b/preprocess.py
@@ -51,7 +51,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