Questions about training #7187
Replies: 3 comments
-
@asluborski 👋 Hello! Thanks for asking about image augmentation. YOLOv5 🚀 applies online imagespace and colorspace augmentations in the trainloader (but not the val_loader) to present a new and unique augmented Mosaic (original image + 3 random images) each time an image is loaded for training. Images are never presented twice in the same way. Augmentation HyperparametersThe hyperparameters used to define these augmentations are in your hyperparameter file (default
yolov5/data/hyps/hyp.scratch-low.yaml Lines 6 to 34 in b94b59e Augmentation PreviewsYou can view the effect of your augmentation policy in your train_batch*.jpg images once training starts. These images will be in your train logging directory, typically
YOLOv5 Albumentations IntegrationYOLOv5 🚀 is now fully integrated with Albumentations, a popular open-source image augmentation package. Now you can train the world's best Vision AI models even better with custom Albumentations 😃! PR #3882 implements this integration, which will automatically apply Albumentations transforms during YOLOv5 training if Example Good luck 🍀 and let us know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Hey, the 2nd question as posted by you, how to actually proceed with tuning the training for classes (objects) with less accuracy/confidence level? |
Beta Was this translation helpful? Give feedback.
-
@glenn-jocher I have to train the model to detect small icons of size upto 80px on a background of 2500px height and width. configurations.yamllr0: 0.01 # initial learning rate (SGD=1E-2, Adam=1E-3) anchors: 3 # anchors per output layer (0 to ignore)fl_gamma: 0.0 # focal loss gamma (efficientDet default gamma=1.5) Could you please guide me on whether the configurations are all good to go for these kind of detections to be successful ? I am using this command for training: |
Beta Was this translation helpful? Give feedback.
-
Hi I have 3 questions about training
1.) I have dataset, there exists some annotation .txt files without images. Is it safe to ignore these or will yolo read them and get confused? I was able to start succesfully training for 2 epoch and it did not complain but I am not sure if yolo is ignoring it or if it is making noise in the network.
2.) When tuning/retraining model is it good practice to use --img-weights argument to help train to detect the objects with lower accuracy?
3.) From what I understand, Yolo performs augmentation of images during training. Is this done on the image or are copies made of the image, hence increasing the size of the dataset? I ask this because I have existing augmented datasets.
Thank you, getting these answers would be extremely helpful!
Beta Was this translation helpful? Give feedback.
All reactions