Skip to content

Filter Classes #3310

Discussion options

You must be logged in to vote

@MetehanYasar11 see PyTorch Hub Tutorial for information on inference settings:

Inference Settings

Inference settings such as confidence threshold, NMS IoU threshold, and classes filter are model attributes, and can be modified by:

model.conf = 0.25  # confidence threshold (0-1)
model.iou = 0.45  # NMS IoU threshold (0-1)
model.classes = None  # (optional list) filter by class, i.e. = [0, 15, 16] for persons, cats and dogs

results = model(imgs, size=320)  # custom inference size

YOLOv5 Tutorials

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MetehanYasar11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants