Skip to content

Commit

Permalink
Update AutoShape.forward() model.classes example (ultralytics#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Oct 25, 2021
1 parent 20c74db commit 424934d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class AutoShape(nn.Module):
# YOLOv5 input-robust model wrapper for passing cv2/np/PIL/torch inputs. Includes preprocessing, inference and NMS
conf = 0.25 # NMS confidence threshold
iou = 0.45 # NMS IoU threshold
classes = None # (optional list) filter by class
classes = None # (optional list) filter by class, i.e. = [0, 15, 16] for COCO persons, cats and dogs
multi_label = False # NMS multiple labels per box
max_det = 1000 # maximum number of detections per image

Expand Down

0 comments on commit 424934d

Please sign in to comment.