摘要: 原网址:https://shurufa.sogou.com/linux/guide 在经历一晚上一及一下午的奋战后,找到了最终解决方案,该解决方案使用的是搜狗输入法 在操作之前有以下注意事项:所有操作都需要走一遍,除了【如果安装过程中提示缺少相关依赖,则执行如下命令解决:】这一部分代码,其余代码均按 阅读全文
posted @ 2022-09-12 23:15 TheBigSeven 阅读(534) 评论(0) 推荐(0)
摘要: 不用重装,重启就好 同时乌班图系统还会出现有些模块功能消失的情况,同时遇见了在设置 选项后 找不到 语言与位置 选项,在网上搜索后找到了解决方案,需要安装一些缺失的模块。 阅读全文
posted @ 2022-09-12 22:47 TheBigSeven 阅读(98) 评论(0) 推荐(0)
摘要: 有一说法是缓存的问题 需要隐去 spice.py 文件中的 '-cache', cache_dir, 当然,我的解决方式是多次运行。不知道为啥,第二次运行就可以了~~~ 0.0 网上的大多问题(因为两个问题报错的样子差不多)都是因为 java 版本引起的,很庆幸,我的 java 版本还可,所以大部分 阅读全文
posted @ 2022-04-13 17:29 TheBigSeven 阅读(1326) 评论(0) 推荐(0)
摘要: 将报错的 sigmoid 、tanh ··· 改为 torch.tanh or torch.sigmoid 参考了:https://blog.csdn.net/dagewoshiwusong/article/details/108306325 阅读全文
posted @ 2022-04-13 17:21 TheBigSeven 阅读(1652) 评论(0) 推荐(0)
摘要: 仅对于Cider计算而言,nltk对输入的要求同Coco是不同的。 前者仅要求输入的 reference 长度等于 hypotheses,并且要求 reference 为一维 List,要求 hypotheses 是二维 List。 Coco则不同,他要求输入的 reference 长度等于 hyp 阅读全文
posted @ 2022-04-13 17:18 TheBigSeven 阅读(389) 评论(0) 推荐(0)
摘要: 原文: https://github.com/DeepRNN/image_captioning/issues/27 递归点击链接: https://docs.python.org/2.5/whatsnew/pep-328.html 解决方法: Update: I solve this issue b 阅读全文
posted @ 2022-03-29 15:59 TheBigSeven 阅读(1576) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/sophicchen/article/details/103306545 阅读全文
posted @ 2022-03-27 21:02 TheBigSeven 阅读(19) 评论(0) 推荐(0)
摘要: 观看一下链接即可 https://blog.csdn.net/qq_41368074/article/details/107860126 也可看本人简述: 不参与更新就是不参与反向传播,即设置 requires_grad = False 即可 设置方式: 1 class Net(nn.Module) 阅读全文
posted @ 2022-03-24 22:32 TheBigSeven 阅读(104) 评论(0) 推荐(0)
摘要: #高斯分布torch.nn.init.normal_(tensor: torch.Tensor, mean: float = 0.0, std: float = 1.0) → torch.Tensor#均匀分布torch.nn.init.uniform_(tensor: torch.Tensor, 阅读全文
posted @ 2022-03-24 22:25 TheBigSeven 阅读(216) 评论(0) 推荐(0)
摘要: 直接原因:第一个Epoch训练正常,第一次切换至Eval并进行测试正常,第二个Epochs训练时报错 根本原因:默认Model的模式是 net.train() 但是测试时需要调成 net.eval() 因为再次训练时没调回 train 模式,故出现上述 bug, 只需在训练之前加上 net.trai 阅读全文
posted @ 2022-03-24 22:17 TheBigSeven 阅读(1734) 评论(0) 推荐(0)