Closed LEEGILJUN closed 2 years ago
@LEEGILJUN š Hello! Thanks for asking about image augmentation. YOLOv5 š applies online imagespace and colorspace augmentations in the trainloader (but not the testloader) 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.
The hyperparameters used to define these augmentations are in your hyperparameter file (default data/hyp.scratch.yaml
) defined when training:
python train.py --hyp hyp.scratch.yaml
You 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/runs/train/exp
:
train_batch0.jpg
shows train batch 0 mosaics and labels:
Good luck and let us know if you have any other questions!
Hello Thank you for answer. Since the question is not resolved, I will ask again.
Thank you
@LEEGILJUN YOLOv5 š applies online imagespace and colorspace augmentations in the trainloader (but not the testloader) 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.
š Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Access additional YOLOv5 š resources:
Access additional Ultralytics ā” resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLOv5 š and Vision AI ā!
Dear Developers,
I have a few questions while studying yolo v5.
I known what the hyperparameters for image augmentation are from the link below https://github.com/ultralytics/yolov5/issues/607 https://github.com/ultralytics/yolov5/issues/4342
I'm asking because I don't understand the code about augmentation working
How many images are created when I use the augmentation method when Train? If all 9 parameters are operated, it will be x9 times the original image when am I training?
For example, when all augmentation methods are applied to images, Is it possible to control how many times the total amount of training image data is compared to the original image?
Is only one augmentation method applied to one image? Or can multiple augmentation methods be applied to one image?
Does augmentation only work when I am Train or Test? and is the augmentation image was included when test or validation?
Is there a function to save the multiplied image augmentation?
last year, yolov5 is included test.py and detect.py but now only val.py. what is different between test.py and val.py