Skip to content

Commit

Permalink
delete some useless params and modify detect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
q3394101 committed Dec 30, 2021
1 parent aeeb839 commit 3fe0b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def run(
engine = PredictorTRT(weights, device=device)
stride, names = engine.stride, engine.names
img_size = check_img_size(img_size, stride=stride) # check image size
img_size = img_size * 2 if len(img_size) == 1 else img_size
img_size = img_size * 2 if len(img_size) == 1 else 1 # auto expand
# Dataloader
dataset = LoadImages(source, img_size=img_size, stride=stride, auto=False)

Expand Down

0 comments on commit 3fe0b57

Please sign in to comment.