• Vasilis Vryniotis's avatar
    Adding Mixup and Cutmix (#4379) · c8e3b2a5
    Vasilis Vryniotis authored
    * Add RandomMixupCutmix.
    
    * Add test with real data.
    
    * Use dataloader and collate in the test.
    
    * Making RandomMixupCutmix JIT scriptable.
    
    * Move out label_smoothing and try roll instead of flip
    
    * Adding mixup/cutmix in references script.
    
    * Handle one-hot encoded target in accuracy.
    
    * Add support of devices on tests.
    
    * Separate Mixup from Cutmix.
    
    * Add check for floats.
    
    * Adding device on expect value.
    
    * Remove hardcoded weights.
    
    * One-hot only when necessary.
    
    * Fix linter.
    
    * Moving mixup and cutmix to references.
    
    * Final code clean up.
    c8e3b2a5
utils.py 13.4 KB