摘要: 整体结构 自注意力 多头注意力 Masked Self-Attention 传统 Seq2Seq 中 Decoder 使用的是 RNN 模型,因此在训练过程中输入因此在训练过程中输入t时刻的词,模型无论如何也看不到未来时刻的词,因为循环神经网络是时间驱动的,只有当t时刻运算结束了,才能看到t+1时刻 阅读全文
posted @ 2024-04-20 21:21 漫漫长夜何时休 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 下载 进入opencv官网下载 https://opencv.org/releases/ 选择sources下载相应版本的压缩包。 解压文件,放到home/(用户名)/下。 依赖安装 安装Opencv的依赖 打开终端,输入以下命令,安装最新的CMake sudo apt-get update sud 阅读全文
posted @ 2023-09-30 10:33 漫漫长夜何时休 阅读(213) 评论(0) 推荐(0) 编辑
摘要: ctrl+鼠标左键 进入方法 ctrl+alt+向左箭头 返回上一次光标所在位置 ctrl+alt+向右箭头 返回下一次光标所在位置 搜索注释,使用 Ctrl+Shift+F 阅读全文
posted @ 2023-01-12 20:28 漫漫长夜何时休 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 转换视频格式 .avi 转 .mp4 ffmpeg -i input.avi output.mp4 提取音频 默认mp4的audio codec是aac,一般常见的音频都是aac ffmpeg -i input.mp4 -acodec aac -vn output.aac 提取视频 ffmpeg - 阅读全文
posted @ 2022-12-08 17:50 漫漫长夜何时休 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 安装 设置Key Setup the package repository and the GPG key distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \ && curl -fsSL https://nvidia.github.io/l 阅读全文
posted @ 2022-07-30 22:06 漫漫长夜何时休 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 简介 知识图谱嵌入(Knowledge Graph Embedding,KGE)模型中最常用的几个指标:MRR,MR,HITS@1,HITS@3,HITS@10. MRR(Mean Reciprocal Ranking) 其中$S$是三元组集合,$|S|$是三元组集合个数, $rank_i$是指第$ 阅读全文
posted @ 2022-07-21 08:24 漫漫长夜何时休 阅读(4165) 评论(0) 推荐(0) 编辑
摘要: 项目结构 包名需要以 test 开头 python 文件需要以 test_ 开头 例如 测试类以 Test 开头(需要继承 unittest.TestCase 类),内部的测试函数以 test 开头命名 常用函数 setUpClass 和 tearDownClass 分别用于测试类的开头和结尾要执行 阅读全文
posted @ 2022-07-16 22:40 漫漫长夜何时休 阅读(85) 评论(1) 推荐(0) 编辑
摘要: import os import logging class Logger: def __init__(self, save_path: str, mode: str = 'w', logger_name: str = ''): assert mode == 'w' or mode == 'a', 阅读全文
posted @ 2022-07-14 12:38 漫漫长夜何时休 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 符号 | 大写 | 小写 | 英文注音 | 国际音标注音 | | | | | | | Α | α | alpha | alfa | | Β | β | beta | beta | | Γ | γ | gamma | gamma | | Δ | δ | deta | delta | | Ε | ε | 阅读全文
posted @ 2022-07-13 16:31 漫漫长夜何时休 阅读(548) 评论(0) 推荐(0) 编辑
摘要: ## 下载 [国内源下载-miniconda](https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/) 或 [国内源下载-anaconda](https://mirrors.tuna.tsinghua.edu.cn/anaconda/arc 阅读全文
posted @ 2022-07-09 23:08 漫漫长夜何时休 阅读(38) 评论(0) 推荐(0) 编辑