-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to visualize input Dataloader after Augmentation? #779
Comments
Trust me, Glenn’s code is really easy to read and understand compared to many repo in ML. You can check the images created in the folder ‘’runs/exp0/‘’ they will show you 3 first batches when starting a training. Else you could simply create a dataloader object in a notebook or something using the repo’s code and load image one after an other and view them however you want by writing to disk or showing them with pyplot |
You have to look in the Here Visualization with |
We display this clearly in the notebook, suggest you start from there: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @glenn-jocher, how can i add albumentations in torch library for augmentations in DataLoader? |
@buimanhlinh96 you can customize the trainloader here: Line 328 in 7220cee
|
@glenn-jocher, Could you please provide more details that how to use albumentations in the DataLoader?? |
@Auth0rM0rgan we don't have an integration with albumentations. YOLOv5 augmentation hyperparameters are set here: Lines 22 to 33 in f6b3c96
You are free to modify the dataloader also as you see fit here: Line 328 in 7220cee
|
Hey @glenn-jocher, Thanks for the quick reply! I know about the YOLOv5 augmentation but I'm trying to add some blur augmentations that are not in the yolov5 augmentation such as MotionBlur, Gaussian Blur, and ... but I have difficulty to add these augmentations inside YOLOv5. I will appreciate if you can help me even a little... Gracias! |
@Auth0rM0rgan ah I see. Well you can access the raw image as a numpy array Lines 526 to 528 in f6b3c96
|
@glenn-jocher Thanks! made it work. Now I can apply a set of different kinds of augmentations at pixel-level and spatial-level! |
@Auth0rM0rgan hey cool! Maybe you could consider submitting a PR for general Albumentations integration? I know its a popular tool so others might find that useful. |
@glenn-jocher, Sure! will do it during the weekend! |
@Auth0rM0rgan @buimanhlinh96 see PR #3882 for a proposed automatic Albumentations integration. |
Hi! I have a question your Dataloader.
Your yolov5 is soo difficult to me to analyze..
How to visualize input Dataloader after Augmentation?
Before I training, I wonder how images come out in the dataloader.
Thanks!
The text was updated successfully, but these errors were encountered: