语帆
2024-03-01 8f63be3af7264f3b0831d91e2e54800fcd246120
funasr/models/specaug/profileaug.py
@@ -2,10 +2,9 @@
import numpy as np
import torch
from torch.nn import functional as F
from funasr.models.specaug.abs_profileaug import AbsProfileAug
import torch.nn as nn
class ProfileAug(AbsProfileAug):
class ProfileAug(nn.Module):
    """
    Implement the augmentation for profiles including:
    - Split aug: split one profile into two profiles, i.e., main and inaccurate, labels assigned to main