Rename test.py to val.py (#4000)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-07-14 15:43:54 +02:00
1 parent 8ee9fd1505
commit 720aaa65c8
11 files changed
+77 -78

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ def letterbox(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleF
# Scale ratio (new / old)
r = min(new_shape[0] / shape[0], new_shape[1] / shape[1])
if not scaleup: # only scale down, do not scale up (for better test mAP)
if not scaleup: # only scale down, do not scale up (for better val mAP)
r = min(r, 1.0)
# Compute padding