Skip to content

Commit 2fa6374

Browse files
authored
Enable detect at higher resolution
1 parent be4841f commit 2fa6374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detect/detect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def detector(picture, cls=''):
5959
except:
6060
return None
6161

62-
if False and width>=4992:
62+
if width>=4992:
6363
# detect again at higher resolution for smaller objects
6464
try:
6565
results = model.predict(source=tmp, conf=0.05, imgsz=min(int(width) >> 5 << 5,6144), half=True, verbose=False)

0 commit comments

Comments
 (0)