问题与解决
淘尽黄沙后
这个作者很懒,什么都没留下…
展开
-
Git位置变动,右键Git Bash Here不可用
Git位置变动,右键Git Bash Here不可用原创 2022-08-04 11:09:57 · 788 阅读 · 0 评论 -
virtualbox中安装的CentOS6无法ping通主机的问题
virtualbox中安装的CentOS6无法ping通主机的问题原创 2022-07-19 13:48:21 · 643 阅读 · 0 评论 -
安装VS2019时出现“无法下载安装文件。请检查Internet连接,然后重试”问题
安装VS2019时出现“无法下载安装文件。请检查Internet连接,然后重试”问题原创 2022-07-18 17:58:14 · 3572 阅读 · 0 评论 -
科研论文写作工具推荐
Create LaTeX tables online – TablesGenerator.comEasily create even complex LaTeX tables with our online generator – you can paste data from a spreadsheet, merge cells, edit borders and more.https://www.tablesgenerator.com/原创 2022-05-18 23:17:36 · 1116 阅读 · 0 评论 -
SSH 连接远端 Ubuntu 服务器设置防火墙,实现只允许白名单访问
https://blog.csdn.net/xyp632/article/details/118224488原创 2021-07-13 16:38:54 · 419 阅读 · 0 评论 -
vscode配置C++环境时出现的问题:gcc.exe: error: CreateProcess: No such file or directory
vscode配置C++环境时出现的问题:gcc.exe: error: CreateProcess: No such file or directoryc_cpp_properties.json{ "configurations": [ { "name": "Win32", "includePath": [ "C:\\MinGW\\include\\*", "原创 2021-03-28 12:12:01 · 10668 阅读 · 3 评论 -
使用BCEWithLogitsLoss()时RuntimeError: result type Float can‘t be cast to the desired output type Long
使用BCEWithLogitsLoss()时RuntimeError: result type Float can't be cast to the desired output type Long使用BCEWithLogitsLoss(output,target),output 为float类型,target为int64,报错RuntimeError: result type Float can't be cast to the desired output type Long参考提问,提到原创 2020-11-20 10:10:21 · 25275 阅读 · 8 评论 -
使用自定义loss时出现Nan和-inf问题
使用自定义loss时,训练几代后就出现问题,loss计算中用了torch.sqrt()来开根号,在网络训练初期是没有什么问题的loss也都正常下降,但是训练到一半会出现NAN。loss本身计算时不出现Nan,但是网络输出为Nan和-inf值参考博客,初步认为是开根号中值为0的情况,修改代码:e = 1e-6torch.sqrt(a + e)改完后,仍然存在Nan的问题进一步检查后,发现训练数据的label存在Nan值如上图,就是一个label例子,计算出来的dp 出现N原创 2020-12-08 15:45:05 · 2084 阅读 · 0 评论 -
卷积与反卷积的padding设置与尺寸计算
参考https://blog.csdn.net/qq_41368247/article/details/86626446由于卷积核滑动过程中,边界情况的不确定,使得在运算步长大于1的反卷积时会出现多种合法输出尺寸,pytorch的反卷积层提供了output_padding供使用者选择输出,一般情况下我们希望输入输出尺寸以步长为比例,因此output_padding一般取stride-1,同时padding取 (kernel_size - 1)/2 。torch.nn.Conv2d输出大小:(W.原创 2020-06-19 01:04:47 · 761 阅读 · 3 评论 -
常用Linux命令:linux服务器上磁盘挂载与磁盘空间查看
系统重启后应加sudo命令blkid查看各分区的UUID原创 2021-06-23 14:29:18 · 691 阅读 · 0 评论 -
一个问题记录:RuntimeError: Tensor: invalid storage offset at /pytorch/aten/src/THC/generic/THCTensor.c:759
pytorch编程中,运行时报错RuntimeError: Tensor: invalid storage offset at /pytorch/aten/src/THC/generic/THCTensor.c:759上网查找后发现都说时reshape函数的问题,把reshape换成view即可。#用reshapeaa = torch.reshape(bb, cc)#用 vie...原创 2020-05-04 18:28:52 · 1046 阅读 · 0 评论