Views
No views yet
| Supernet Stage | Subnet | MACs (3s) | Params | EER(%) | minDCF |
|---|---|---|---|---|---|
| depth | Base | 1.45G | 5.79M | 0.94 | 0.089 |
| width 1 | Mobile | 570.98M | 2.42M | 1.41 | 0.124 |
| width 2 | Small | 204.07M | 899.20K | 2.20 | 0.219 |
1import torch
2from sugar.models import WrappedModel
3wav_input_16khz = torch.randn(1,10000).cuda()
4
5repo_id = "mechanicalsea/efficient-tdnn"
6supernet_filename = "depth/depth.torchparams"
7subnet_filename = "depth/depth.ecapa-tdnn.3.512.512.512.512.5.3.3.3.1536.bn.tar"
8subnet, info = WrappedModel.from_pretrained(repo_id=repo_id, supernet_filename=supernet_filename, subnet_filename=subnet_filename)
9subnet = subnet.cuda()
10subnet = subnet.eval()
11
12embedding = subnet(wav_input_16khz)subnet = subnet.to(device) after calling the from_pretrained method.kernel/kernel.torchparams.depth/depth.torchparams.width1/width1.torchparams.width2/width2.torchparams.kernel/kernel.max.bn.tarkernel/kernel.Kmin.bn.tardepth/depth.max.bn.tardepth/depth.Kmin.bn.tardepth/depth.Dmin.bn.tardepth/depth.3.512.5.5.3.3.1536.bn.tardepth/depth.ecapa-tdnn.3.512.512.512.512.5.3.3.3.1536.bn.tarwidth1/width1.torchparamswidth1/width1.max.bn.tarwidth1/width1.Kmin.bn.tarwidth1/width1.Dmin.bn.tarwidth1/width1.C1min.bn.tarwidth1/width1.3.383.256.256.256.5.3.3.3.768.bn.tarwidth2/width2.max.bn.tarwidth2/width2.Kmin.bn.tarwidth2/width2.Dmin.bn.tarwidth2/width2.C1min.bn.tarwidth2/width2.C2min.bn.tarwidth2/width2.3.384.3.1152.bn.tarwidth2/width2.3.256.256.384.384.1.3.5.3.1152.bn.tarwidth2/width2.2.256.256.256.3.3.3.400.bn.tar1@article{wr-efficienttdnn-2022,
2 author={Wang, Rui and Wei, Zhihua and Duan, Haoran and Ji, Shouling and Long, Yang and Hong, Zhen},
3 journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing},
4 title={EfficientTDNN: Efficient Architecture Search for Speaker Recognition},
5 year={2022},
6 volume={30},
7 number={},
8 pages={2267-2279},
9 doi={10.1109/TASLP.2022.3182856}}