03 2023 档案

摘要:尝试把conda下的移过去,但没有权限,操作失败 方法 参考 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/to/conda/env/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/project/wa 阅读全文
posted @ 2023-03-31 00:21 不要肥宅 阅读(115) 评论(0) 推荐(0) 编辑
摘要:How to get indices of top-K values from a numpy array np.argpartition(probs,-5)[-5:] 阅读全文
posted @ 2023-03-30 16:24 不要肥宅 阅读(41) 评论(0) 推荐(0) 编辑
摘要:使用torchaudio时显示没有soundfile 直接pip install 安装失败,使用conda install -c conda-forge pysoundfile安装成功 报错: 搞了半天pip uninstall soundfile 再重新安装就好了 记得重启环境! 阅读全文
posted @ 2023-03-20 15:24 不要肥宅 阅读(2198) 评论(0) 推荐(0) 编辑
摘要:1. gnutls_handshake() failed: The TLS connection was non-properly terminated. 重置代理 完美解决 git config --global --unset https.https://github.com.proxy git 阅读全文
posted @ 2023-03-10 16:18 不要肥宅 阅读(191) 评论(0) 推荐(0) 编辑
摘要:ref ref2 commit节点回退 git reset --soft HEAD~1 回退一个commit节点并保存编辑器内容 git reset --hard HEAD~1 撤销第一次提交并彻底删除相关更改 如果此时commit是initial commit,会报错 fatal: ambiguo 阅读全文
posted @ 2023-03-10 09:52 不要肥宅 阅读(78) 评论(0) 推荐(0) 编辑
摘要:在一个类中定义__call__方法,使得它的实例能够像函数一样接受参数,并返回结果。 点击查看代码 class MyClass: def __init__(self): self.x = 0 def __call__(self, a, b): self.x = a + b return self.x 阅读全文
posted @ 2023-03-09 09:50 不要肥宅 阅读(20) 评论(0) 推荐(0) 编辑
摘要:只需要转化模型即可。(nn.module) encoder decoder 检测模型正确性: import onnx onnx_model = onnx.load("/home/mgtv/test_whisper/onnx/medium/whisper_decoder.onnx") onnx.che 阅读全文
posted @ 2023-03-08 16:11 不要肥宅 阅读(1094) 评论(0) 推荐(1) 编辑
摘要:调试Whisper时,不管执行什么命令都会报错RuntimeError: CUDA error: device-side assert triggered 问题 这个错误通常意味着CUDA运行时检测到了某些问题,例如尝试访问不存在的内存地址或尝试在CUDA内核中进行非法操作等。可能的原因包括: CU 阅读全文
posted @ 2023-03-08 11:04 不要肥宅 阅读(2071) 评论(0) 推荐(0) 编辑
摘要:错误描述:numpy版本太高,不支持np.object, np.bool, np.int,需要对应改成np.object_, np.bool_, np.int_或object、np.int32, np.int64 或者可以 在报错前patch/ monkey patch import numpy a 阅读全文
posted @ 2023-03-07 18:13 不要肥宅 阅读(1910) 评论(0) 推荐(0) 编辑
摘要:模型理解 model.py ModelDimensions的含义如下: n_mels:Mel频率的数量,用于音频处理,通常设置为80。 n_audio_ctx:输入音频的上下文大小,即处理音频的窗口大小,通常设置为1500。 即音频帧的数量,指定了模型在处理音频时要考虑多少帧的上下文。在每个时间步, 阅读全文
posted @ 2023-03-07 17:50 不要肥宅 阅读(1829) 评论(2) 推荐(0) 编辑
摘要:Python中的**语法用于解压缩字典,并将其key-value对作为关键字参数传递给函数或构造函数。 点击查看代码 my_dict = {"arg1": 10, "arg2": "hello", "arg3": True} my_function(**my_dict) # 等价于 my_funct 阅读全文
posted @ 2023-03-07 17:36 不要肥宅 阅读(17) 评论(0) 推荐(0) 编辑
摘要:ffmpeg -ss 00:01:00 -i /mnt/cluster/lynch/576460752303462911.mp4 -t 00:05:00 -c copy /home/mgtv/test_whisper/test4.mp4 ffmpeg -i 'xxx/test2.mp4' -acod 阅读全文
posted @ 2023-03-06 17:23 不要肥宅 阅读(8) 评论(0) 推荐(0) 编辑
摘要:运行: 参照:markdown 问题: CMake Error: Error: generator : Ninja Ninja:提高构建速度 wenet/runtime/libtorch/fc_base/libtorch-src/lib/libtorch_cuda_cpp.so: undefined 阅读全文
posted @ 2023-03-03 18:07 不要肥宅 阅读(86) 评论(0) 推荐(0) 编辑
摘要:旧版本:3.15 新版本:3.22.1 下载新版本 https://cmake.org/files/ 手动下载或使用wget wget https://cmake.org/files/v3.22/cmake-3.22.1.tar.gz 解压 tar -xvzf cmake-3.22.1.tar.gz 阅读全文
posted @ 2023-03-03 16:12 不要肥宅 阅读(1311) 评论(0) 推荐(0) 编辑
摘要:- ls - list - ln -s 建立软链接 - unlink xxx 或 rm xxx 删除软链接 {不建议使用 rm -rf xxx 写成 rm -rf xxx/会把原文件夹删掉} - rm -rf /root/xx 删除文件夹并向下渗透 - rm -f /root/logs/game/n 阅读全文
posted @ 2023-03-02 15:51 不要肥宅 阅读(13) 评论(0) 推荐(0) 编辑