随笔分类 -  cv代码问题

摘要:def save_to_json(audio_path: str, result: dict): parent_dir = os.path.dirname(audio_path) audio_name = os.path.basename(audio_path) json_name = audio_ 阅读全文
posted @ 2024-07-13 21:47 不要肥宅 阅读(6) 评论(0) 推荐(0) 编辑
摘要:paddlespeech 1. 环境配置 按照:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/docs/source/install_cn.md 问题 conda create -p 在桌面目录执行了conda create -p 阅读全文
posted @ 2023-04-06 18:31 不要肥宅 阅读(180) 评论(0) 推荐(0) 编辑
摘要:原conda源:查看.condarc文件 ssl_verify: true show_channel_urls: true channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ - http://mirrors 阅读全文
posted @ 2023-04-06 10:10 不要肥宅 阅读(1148) 评论(0) 推荐(0) 编辑
摘要:错误描述: root@cef54a23d0c1:/home/xxx/LightSpeech# conda activate lightspeech CommandNotFoundError: Your shell has not been properly configured to use 'co 阅读全文
posted @ 2023-04-03 17:57 不要肥宅 阅读(64) 评论(0) 推荐(0) 编辑
摘要:尝试把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) 编辑
摘要:使用torchaudio时显示没有soundfile 直接pip install 安装失败,使用conda install -c conda-forge pysoundfile安装成功 报错: 搞了半天pip uninstall soundfile 再重新安装就好了 记得重启环境! 阅读全文
posted @ 2023-03-20 15:24 不要肥宅 阅读(2199) 评论(0) 推荐(0) 编辑
摘要:调试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) 编辑
摘要:超算使用wandb总是连接超时,设置为offline模式即可 import os import wandb os.environ["WANDB_API_KEY"] = 'KEY' os.environ["WANDB_MODE"] = "offline" 阅读全文
posted @ 2023-02-09 18:48 不要肥宅 阅读(3248) 评论(0) 推荐(2) 编辑
摘要:错误原因:数据有的在cpu上有的在gpu上debug:断点到出错位置查看类型,或者打印`x.is_cuda`查看修改:将cpu上的数据通过`.to(device)`加载到gpu上 阅读全文
posted @ 2023-02-09 16:18 不要肥宅 阅读(1967) 评论(0) 推荐(0) 编辑
摘要:调试diffusion模型时在loss处报错,报错位置: `acc_train_loss += loss.item()` RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynch 阅读全文
posted @ 2023-02-09 14:38 不要肥宅 阅读(1851) 评论(0) 推荐(0) 编辑
摘要:1. 安装cuda nvidia-smi查看GPU信息,显示的CUDA Version是可以支持的最高版本cuda 去官网安装相应版本的cuda 安装后重新打开终端,nvcc --version,输出cud版本 2. 安装conda/miniconda 2.1 安装 到anaconda官网按指示安装 阅读全文
posted @ 2023-02-02 14:08 不要肥宅 阅读(61) 评论(0) 推荐(0) 编辑
摘要:DAFormer: https://github.com/lhoyer/DAFormer window运行shell命令: 使用git bash pip 安装包超时: pip --default-timeout=100 install -i https://pypi.douban.com/simpl 阅读全文
posted @ 2022-12-07 19:45 不要肥宅 阅读(422) 评论(0) 推荐(0) 编辑
摘要:解决:\lable{}要紧放在\caption{}下 点击查看代码 \begin{table} ... \caption{Table A} \label{TableA} ... \end{table} 阅读全文
posted @ 2022-12-02 11:06 不要肥宅 阅读(736) 评论(0) 推荐(0) 编辑
摘要:在测试EnlightenGan时,可视化结果保存出现问题。 原因:调用visdom可视化,需要先打开visdom python -m visdom.server 阅读全文
posted @ 2022-11-28 23:33 不要肥宅 阅读(579) 评论(0) 推荐(0) 编辑
摘要:参考教程:https://blog.csdn.net/weixin_45102257/article/details/108872951 问题: ![image](https://img2022.cnblogs.com/blog/2833048/202209/2833048-202209091109 阅读全文
posted @ 2022-09-09 11:36 不要肥宅 阅读(29) 评论(0) 推荐(0) 编辑