Skip to content

Difference between 'conf-thresh' and 'iou-thresh' #7906

Answered by glenn-jocher
aonsafdar asked this question in Q&A
Discussion options

You must be logged in to vote

@aonsafdar 👋 Hello, thanks for asking about the differences between train.py, detect.py and val.py in YOLOv5 🚀.

These 3 files are designed for different purposes and utilize different dataloaders with different settings. train.py dataloaders are designed for a speed-accuracy compromise, val.py is designed to obtain the best mAP on a validation dataset, and detect.py is designed for best real-world inference results. A few important aspects of each:

train.py

  • trainloader LoadImagesAndLabels(): designed to load train dataset images and labels. Augmentation capable and enabled.

    yolov5/train.py

    Lines 210 to 213 in 7ee5aed

    train_loader, dataset = create_dataloader(train_path, imgsz,

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Alberto1404
Comment options

@glenn-jocher
Comment options

@yesid-acm
Comment options

@lucasvw
Comment options

@faisalhazry
Comment options

Answer selected by aonsafdar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants