【李宏毅2021机器学习深度学习——作业4 Self-Attention】Speaker classification 记录(双过strong baseline)(待改进)

实验记录(双过strong baseline)

增大d_model = 512 + conformer
在这里插入图片描述
只修改batch_size=128和head=1,接近medium
在这里插入图片描述

代码理解

样例代码

主要理解dim_feedforward=256,输出model看一下
在这里插入图片描述
在这里插入图片描述

ConformerBlock参数设置(照抄)

self.conformer_block = ConformerBlock(
            dim=d_model, 
            dim_head=64,
            heads=8,  
            ff_mult=4,
            conv_expansion_factor=2,
            conv_kernel_size=31,
            attn_dropout=dropout,
            ff_dropout=dropout,
            conv_dropout=dropout
    )

实验bug修改

安装comformer库遇到No module named问题(jupyter lab使用的环境是python3.7,下载的是envs/python38)

查看pip install安装的conformer包在哪里
在这里插入图片描述

jupyter lab查看sys path,手动加入包所在地方
在这里插入图片描述

改进空间(待改进)

  1. AM-Softmax
  2. SAP
  3. conformer_block 的各个参数设置还不理解,学完后面再来…

参考资料

课程主页:https://speech.ee.ntu.edu.tw/~hylee/ml/2021-spring.php

李宏毅深度学习2021春HW4实验四,Strong Baseline,使用Conformer

Conformer的代码实现:https://github.com/lucidrains/conformer/blob/master/conformer/conformer.py

数据集和提示——以下来源于bilibili评论:https://www.bilibili.com/video/BV1nL4y1H7Wo?spm_id_from=333.999.0.0

课程官方资料库(含PPT和样例代码):https://speech.ee.ntu.edu.tw/~hylee/ml/2021-spring.html
HW4数据集:
https://pan.baidu.com/s/1qAar83zKKENNfFu3CYQ_tw 提取码:4o8t (Google Driver参见样例代码)
Conformer:
https://arxiv.org/pdf/2005.08100.pdf https://arxiv.org/pdf/1706.03762.pdf
https://github.com/lucidrains/conformer
SAP:
https://danielpovey.com/files/2018_interspeech_xvector_attention.pdf
(code我忘了出处,github搜Self Attentive Pooling都可用)
AMSoftmax & Focal:
https://arxiv.org/pdf/1801.05599.pdf
https://github.com/miquelindia90/DoubleAttentionSpeakerVerification/blob/master/scripts/loss.py
SpecAug:
https://github.com/zcaceres/spec_augment

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值