Skip to content
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

Change some mechanism #14

Merged
merged 18 commits into from
Feb 27, 2022
Merged

Change some mechanism #14

merged 18 commits into from
Feb 27, 2022

Conversation

kaylode
Copy link
Owner

@kaylode kaylode commented Feb 27, 2022

  • Use global iteration index now, instead of epoch index
  • Generalize base trainer
  • Change dataloader mechanism to work with custom collator function, batch sampler. Usage example:
dataloader:
    train:
      name: DataLoaderWithCollator
      args:
        batch_size: 32
        drop_last: true
        shuffle: false
        collate_fn:
            name: MixupCutmixCollator
            args:
              mixup_alpha: 0.4
              cutmix_alpha: 1.0
              weight: [0.2, 0.2]
        sampler:
            name: BalanceSampler
            args:

@kaylode kaylode added the enhancement New feature or request label Feb 27, 2022
@kaylode kaylode self-assigned this Feb 27, 2022
@kaylode kaylode merged commit 91d4977 into master Feb 27, 2022
@kaylode kaylode deleted the dev branch February 27, 2022 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant