Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

dataloader modified #305

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

dataloader modified #305

wants to merge 2 commits into from

Conversation

haven890611
Copy link

Accelerate the training phase when using mosaic and mixup.
The optimization of the data loader and processing accelerates about 3 times faster.

The reference is from the dataloader and augment of YOLOv8.

if self.augment:
hyp['mosaic'] = hyp['mosaic'] if self.augment and not self.rect else 0.0
hyp['mixup'] = hyp['mixup'] if self.augment and not self.rect else 0.0
transforms = v8_transforms(self, self.img_size, hyp)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
transforms = v8_transforms(self, self.img_size, hyp)
transforms = v9_transforms(self, self.img_size, hyp)

Looks like there is a typo here ^

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your reminder!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants